first commit

This commit is contained in:
编码猿
2024-09-27 01:32:49 +08:00
commit 28ebe05a64
7399 changed files with 1174529 additions and 0 deletions

View File

@@ -0,0 +1 @@
b881cb83-9761-4b50-991e-5da6ea4c2a58

View File

@@ -0,0 +1,32 @@
class CheckUserIsFollowEntityList {
int _code;
String _message;
bool _data;
CheckUserIsFollowEntityList({int code, String message, bool data}) {
this._code = code;
this._message = message;
this._data = data;
}
int get code => _code;
set code(int code) => _code = code;
String get message => _message;
set message(String message) => _message = message;
bool get data => _data;
set data(bool data) => _data = data;
CheckUserIsFollowEntityList.fromJson(Map<String, dynamic> json) {
_code = json['code'];
_message = json['message'];
_data = json['data'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['code'] = this._code;
data['message'] = this._message;
data['data'] = this._data;
return data;
}
}

View File

@@ -0,0 +1,208 @@
class CollectionOpusListEntityList {
int _code;
String _message;
CollectionOpusListEntityData _data;
CollectionOpusListEntityList(
{int code, Null message, CollectionOpusListEntityData data}) {
this._code = code;
this._message = message;
this._data = data;
}
int get code => _code;
set code(int code) => _code = code;
Null get message => _message;
set message(Null message) => _message = message;
CollectionOpusListEntityData get data => _data;
set data(CollectionOpusListEntityData data) => _data = data;
CollectionOpusListEntityList.fromJson(Map<String, dynamic> json) {
_code = json['code'];
_message = json['message'];
_data = json['data'] != null
? new CollectionOpusListEntityData.fromJson(json['data'])
: null;
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['code'] = this._code;
data['message'] = this._message;
if (this._data != null) {
data['data'] = this._data.toJson();
}
return data;
}
}
class CollectionOpusListEntityData {
int _nextPage;
List<CollectionOpusListEntityResult> _result;
int _totalPage;
int _currentPage;
CollectionOpusListEntityData(
{int nextPage,
List<CollectionOpusListEntityResult> result,
int totalPage,
int currentPage}) {
this._nextPage = nextPage;
this._result = result;
this._totalPage = totalPage;
this._currentPage = currentPage;
}
int get nextPage => _nextPage;
set nextPage(int nextPage) => _nextPage = nextPage;
List<CollectionOpusListEntityResult> get result => _result;
set result(List<CollectionOpusListEntityResult> result) => _result = result;
int get totalPage => _totalPage;
set totalPage(int totalPage) => _totalPage = totalPage;
int get currentPage => _currentPage;
set currentPage(int currentPage) => _currentPage = currentPage;
CollectionOpusListEntityData.fromJson(Map<String, dynamic> json) {
_nextPage = json['next_page'];
if (json['result'] != null) {
_result = new List<CollectionOpusListEntityResult>();
json['result'].forEach((v) {
_result.add(new CollectionOpusListEntityResult.fromJson(v));
});
}
_totalPage = json['total_page'];
_currentPage = json['current_page'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['next_page'] = this._nextPage;
if (this._result != null) {
data['result'] = this._result.map((v) => v.toJson()).toList();
}
data['total_page'] = this._totalPage;
data['current_page'] = this._currentPage;
return data;
}
}
class CollectionOpusListEntityResult {
int _opusId;
int _userId;
String _opusTitle;
String _opusIntroduce;
String _opusTime;
int _opusSatisfied;
int _opusSee;
int _opusFollow;
int _opusCollection;
String _opusImg;
int _opusStatus;
int _opusType;
int _opusOriginal;
int _opusJurisdiction;
int _opusIsEdit;
CollectionOpusListEntityResult(
{int opusId,
int userId,
String opusTitle,
String opusIntroduce,
String opusTime,
int opusSatisfied,
int opusSee,
int opusFollow,
int opusCollection,
String opusImg,
int opusStatus,
int opusType,
int opusOriginal,
int opusJurisdiction,
int opusIsEdit}) {
this._opusId = opusId;
this._userId = userId;
this._opusTitle = opusTitle;
this._opusIntroduce = opusIntroduce;
this._opusTime = opusTime;
this._opusSatisfied = opusSatisfied;
this._opusSee = opusSee;
this._opusFollow = opusFollow;
this._opusCollection = opusCollection;
this._opusImg = opusImg;
this._opusStatus = opusStatus;
this._opusType = opusType;
this._opusOriginal = opusOriginal;
this._opusJurisdiction = opusJurisdiction;
this._opusIsEdit = opusIsEdit;
}
int get opusId => _opusId;
set opusId(int opusId) => _opusId = opusId;
int get userId => _userId;
set userId(int userId) => _userId = userId;
String get opusTitle => _opusTitle;
set opusTitle(String opusTitle) => _opusTitle = opusTitle;
String get opusIntroduce => _opusIntroduce;
set opusIntroduce(String opusIntroduce) => _opusIntroduce = opusIntroduce;
String get opusTime => _opusTime;
set opusTime(String opusTime) => _opusTime = opusTime;
int get opusSatisfied => _opusSatisfied;
set opusSatisfied(int opusSatisfied) => _opusSatisfied = opusSatisfied;
int get opusSee => _opusSee;
set opusSee(int opusSee) => _opusSee = opusSee;
int get opusFollow => _opusFollow;
set opusFollow(int opusFollow) => _opusFollow = opusFollow;
int get opusCollection => _opusCollection;
set opusCollection(int opusCollection) => _opusCollection = opusCollection;
String get opusImg => _opusImg;
set opusImg(String opusImg) => _opusImg = opusImg;
int get opusStatus => _opusStatus;
set opusStatus(int opusStatus) => _opusStatus = opusStatus;
int get opusType => _opusType;
set opusType(int opusType) => _opusType = opusType;
int get opusOriginal => _opusOriginal;
set opusOriginal(int opusOriginal) => _opusOriginal = opusOriginal;
int get opusJurisdiction => _opusJurisdiction;
set opusJurisdiction(int opusJurisdiction) =>
_opusJurisdiction = opusJurisdiction;
int get opusIsEdit => _opusIsEdit;
set opusIsEdit(int opusIsEdit) => _opusIsEdit = opusIsEdit;
CollectionOpusListEntityResult.fromJson(Map<String, dynamic> json) {
_opusId = json['opus_id'];
_userId = json['user_id'];
_opusTitle = json['opus_title'];
_opusIntroduce = json['opus_introduce'];
_opusTime = json['opus_time'];
_opusSatisfied = json['opus_satisfied'];
_opusSee = json['opus_see'];
_opusFollow = json['opus_follow'];
_opusCollection = json['opus_collection'];
_opusImg = json['opus_img'];
_opusStatus = json['opus_status'];
_opusType = json['opus_type'];
_opusOriginal = json['opus_original'];
_opusJurisdiction = json['opus_jurisdiction'];
_opusIsEdit = json['opus_is_edit'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['opus_id'] = this._opusId;
data['user_id'] = this._userId;
data['opus_title'] = this._opusTitle;
data['opus_introduce'] = this._opusIntroduce;
data['opus_time'] = this._opusTime;
data['opus_satisfied'] = this._opusSatisfied;
data['opus_see'] = this._opusSee;
data['opus_follow'] = this._opusFollow;
data['opus_collection'] = this._opusCollection;
data['opus_img'] = this._opusImg;
data['opus_status'] = this._opusStatus;
data['opus_type'] = this._opusType;
data['opus_original'] = this._opusOriginal;
data['opus_jurisdiction'] = this._opusJurisdiction;
data['opus_is_edit'] = this._opusIsEdit;
return data;
}
}

View File

@@ -0,0 +1,286 @@
class CommenListEntityList {
int _code;
String _message;
CommenListEntityData _data;
CommenListEntityList({int code, Null message, CommenListEntityData data}) {
this._code = code;
this._message = message;
this._data = data;
}
int get code => _code;
set code(int code) => _code = code;
Null get message => _message;
set message(Null message) => _message = message;
CommenListEntityData get data => _data;
set data(CommenListEntityData data) => _data = data;
CommenListEntityList.fromJson(Map<String, dynamic> json) {
_code = json['code'];
_message = json['message'];
_data = json['data'] != null
? new CommenListEntityData.fromJson(json['data'])
: null;
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['code'] = this._code;
data['message'] = this._message;
if (this._data != null) {
data['data'] = this._data.toJson();
}
return data;
}
}
class CommenListEntityData {
int _nextPage;
List<CommenListEntity> _result;
int _totalPage;
int _currentPage;
CommenListEntityData(
{int nextPage,
List<CommenListEntity> result,
int totalPage,
int currentPage}) {
this._nextPage = nextPage;
this._result = result;
this._totalPage = totalPage;
this._currentPage = currentPage;
}
int get nextPage => _nextPage;
set nextPage(int nextPage) => _nextPage = nextPage;
List<CommenListEntity> get result => _result;
set result(List<CommenListEntity> result) => _result = result;
int get totalPage => _totalPage;
set totalPage(int totalPage) => _totalPage = totalPage;
int get currentPage => _currentPage;
set currentPage(int currentPage) => _currentPage = currentPage;
CommenListEntityData.fromJson(Map<String, dynamic> json) {
_nextPage = json['next_page'];
if (json['result'] != null) {
_result = new List<CommenListEntity>();
json['result'].forEach((v) {
_result.add(new CommenListEntity.fromJson(v));
});
}
_totalPage = json['total_page'];
_currentPage = json['current_page'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['next_page'] = this._nextPage;
if (this._result != null) {
data['result'] = this._result.map((v) => v.toJson()).toList();
}
data['total_page'] = this._totalPage;
data['current_page'] = this._currentPage;
return data;
}
}
class CommenListEntity {
int _commentId;
int _opusId;
int _dynamicId;
int _userId;
String _commentContent;
String _commentTime;
int _commentReplyId;
String _commentToUsername;
String _userNickname;
String _userHeadImg;
int _commentType;
List<Child> _child;
CommenListEntity(
{int commentId,
int opusId,
int dynamicId,
int userId,
String commentContent,
String commentTime,
int commentReplyId,
String commentToUsername,
String userNickname,
String userHeadImg,
int commentType,
List<Child> child}) {
this._commentId = commentId;
this._opusId = opusId;
this._dynamicId = dynamicId;
this._userId = userId;
this._commentContent = commentContent;
this._commentTime = commentTime;
this._commentReplyId = commentReplyId;
this._commentToUsername = commentToUsername;
this._userNickname = userNickname;
this._userHeadImg = userHeadImg;
this._commentType = commentType;
this._child = child;
}
int get commentId => _commentId;
set commentId(int commentId) => _commentId = commentId;
int get opusId => _opusId;
set opusId(int opusId) => _opusId = opusId;
int get dynamicId => _dynamicId;
set dynamicId(int dynamicId) => _dynamicId = dynamicId;
int get userId => _userId;
set userId(int userId) => _userId = userId;
String get commentContent => _commentContent;
set commentContent(String commentContent) => _commentContent = commentContent;
String get commentTime => _commentTime;
set commentTime(String commentTime) => _commentTime = commentTime;
int get commentReplyId => _commentReplyId;
set commentReplyId(int commentReplyId) => _commentReplyId = commentReplyId;
String get commentToUsername => _commentToUsername;
set commentToUsername(String commentToUsername) =>
_commentToUsername = commentToUsername;
String get userNickname => _userNickname;
set userNickname(String userNickname) => _userNickname = userNickname;
String get userHeadImg => _userHeadImg;
set userHeadImg(String userHeadImg) => _userHeadImg = userHeadImg;
int get commentType => _commentType;
set commentType(int commentType) => _commentType = commentType;
List<Child> get child => _child;
set child(List<Child> child) => _child = child;
CommenListEntity.fromJson(Map<String, dynamic> json) {
_commentId = json['comment_id'];
_opusId = json['opus_id'];
_dynamicId = json['dynamic_id'];
_userId = json['user_id'];
_commentContent = json['comment_content'];
_commentTime = json['comment_time'];
_commentReplyId = json['comment_reply_id'];
_commentToUsername = json['comment_to_username'];
_userNickname = json['user_nickname'];
_userHeadImg = json['user_head_img'];
_commentType = json['comment_type'];
if (json['child'] != null) {
_child = new List<Child>();
json['child'].forEach((v) {
_child.add(new Child.fromJson(v));
});
}
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['comment_id'] = this._commentId;
data['opus_id'] = this._opusId;
data['dynamic_id'] = this._dynamicId;
data['user_id'] = this._userId;
data['comment_content'] = this._commentContent;
data['comment_time'] = this._commentTime;
data['comment_reply_id'] = this._commentReplyId;
data['comment_to_username'] = this._commentToUsername;
data['user_nickname'] = this._userNickname;
data['user_head_img'] = this._userHeadImg;
data['comment_type'] = this._commentType;
if (this._child != null) {
data['child'] = this._child.map((v) => v.toJson()).toList();
}
return data;
}
}
class Child {
int _commentId;
int _opusId;
int _dynamicId;
int _userId;
String _commentContent;
String _commentTime;
int _commentReplyId;
String _commentToUsername;
String _userNickname;
String _userHeadImg;
int _commentType;
Child(
{int commentId,
int opusId,
int dynamicId,
int userId,
String commentContent,
String commentTime,
int commentReplyId,
String commentToUsername,
String userNickname,
String userHeadImg,
int commentType}) {
this._commentId = commentId;
this._opusId = opusId;
this._dynamicId = dynamicId;
this._userId = userId;
this._commentContent = commentContent;
this._commentTime = commentTime;
this._commentReplyId = commentReplyId;
this._commentToUsername = commentToUsername;
this._userNickname = userNickname;
this._userHeadImg = userHeadImg;
this._commentType = commentType;
}
int get commentId => _commentId;
set commentId(int commentId) => _commentId = commentId;
int get opusId => _opusId;
set opusId(int opusId) => _opusId = opusId;
int get dynamicId => _dynamicId;
set dynamicId(int dynamicId) => _dynamicId = dynamicId;
int get userId => _userId;
set userId(int userId) => _userId = userId;
String get commentContent => _commentContent;
set commentContent(String commentContent) => _commentContent = commentContent;
String get commentTime => _commentTime;
set commentTime(String commentTime) => _commentTime = commentTime;
int get commentReplyId => _commentReplyId;
set commentReplyId(int commentReplyId) => _commentReplyId = commentReplyId;
String get commentToUsername => _commentToUsername;
set commentToUsername(String commentToUsername) =>
_commentToUsername = commentToUsername;
String get userNickname => _userNickname;
set userNickname(String userNickname) => _userNickname = userNickname;
String get userHeadImg => _userHeadImg;
set userHeadImg(String userHeadImg) => _userHeadImg = userHeadImg;
int get commentType => _commentType;
set commentType(int commentType) => _commentType = commentType;
Child.fromJson(Map<String, dynamic> json) {
_commentId = json['comment_id'];
_opusId = json['opus_id'];
_dynamicId = json['dynamic_id'];
_userId = json['user_id'];
_commentContent = json['comment_content'];
_commentTime = json['comment_time'];
_commentReplyId = json['comment_reply_id'];
_commentToUsername = json['comment_to_username'];
_userNickname = json['user_nickname'];
_userHeadImg = json['user_head_img'];
_commentType = json['comment_type'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['comment_id'] = this._commentId;
data['opus_id'] = this._opusId;
data['dynamic_id'] = this._dynamicId;
data['user_id'] = this._userId;
data['comment_content'] = this._commentContent;
data['comment_time'] = this._commentTime;
data['comment_reply_id'] = this._commentReplyId;
data['comment_to_username'] = this._commentToUsername;
data['user_nickname'] = this._userNickname;
data['user_head_img'] = this._userHeadImg;
data['comment_type'] = this._commentType;
return data;
}
}

View File

@@ -0,0 +1,121 @@
class DynamicDynamicHistoryEntityList {
int _code;
DynamicDynamicHistoryEntityData _data;
String _message;
DynamicDynamicHistoryEntityList(
{int code, DynamicDynamicHistoryEntityData data, String message}) {
this._code = code;
this._data = data;
this._message = message;
}
int get code => _code;
set code(int code) => _code = code;
DynamicDynamicHistoryEntityData get data => _data;
set data(DynamicDynamicHistoryEntityData data) => _data = data;
String get message => _message;
set message(String message) => _message = message;
DynamicDynamicHistoryEntityList.fromJson(Map<String, dynamic> json) {
_code = json['code'];
_data = json['data'] != null
? new DynamicDynamicHistoryEntityData.fromJson(json['data'])
: null;
_message = json['message'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['code'] = this._code;
if (this._data != null) {
data['data'] = this._data.toJson();
}
data['message'] = this._message;
return data;
}
}
class DynamicDynamicHistoryEntityData {
int _currentPage;
int _nextPage;
List<DynamicDynamicHistoryEntity> _result;
int _totalPage;
DynamicDynamicHistoryEntityData(
{int currentPage,
int nextPage,
List<DynamicDynamicHistoryEntity> result,
int totalPage}) {
this._currentPage = currentPage;
this._nextPage = nextPage;
this._result = result;
this._totalPage = totalPage;
}
int get currentPage => _currentPage;
set currentPage(int currentPage) => _currentPage = currentPage;
int get nextPage => _nextPage;
set nextPage(int nextPage) => _nextPage = nextPage;
List<DynamicDynamicHistoryEntity> get result => _result;
set result(List<DynamicDynamicHistoryEntity> result) => _result = result;
int get totalPage => _totalPage;
set totalPage(int totalPage) => _totalPage = totalPage;
DynamicDynamicHistoryEntityData.fromJson(Map<String, dynamic> json) {
_currentPage = json['current_page'];
_nextPage = json['next_page'];
if (json['result'] != null) {
_result = new List<DynamicDynamicHistoryEntity>();
json['result'].forEach((v) {
_result.add(new DynamicDynamicHistoryEntity.fromJson(v));
});
}
_totalPage = json['total_page'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['current_page'] = this._currentPage;
data['next_page'] = this._nextPage;
if (this._result != null) {
data['result'] = this._result.map((v) => v.toJson()).toList();
}
data['total_page'] = this._totalPage;
return data;
}
}
class DynamicDynamicHistoryEntity {
String _userHeadImg;
int _userId;
String _userNickname;
DynamicDynamicHistoryEntity(
{String userHeadImg, int userId, String userNickname}) {
this._userHeadImg = userHeadImg;
this._userId = userId;
this._userNickname = userNickname;
}
String get userHeadImg => _userHeadImg;
set userHeadImg(String userHeadImg) => _userHeadImg = userHeadImg;
int get userId => _userId;
set userId(int userId) => _userId = userId;
String get userNickname => _userNickname;
set userNickname(String userNickname) => _userNickname = userNickname;
DynamicDynamicHistoryEntity.fromJson(Map<String, dynamic> json) {
_userHeadImg = json['user_head_img'];
_userId = json['user_id'];
_userNickname = json['user_nickname'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['user_head_img'] = this._userHeadImg;
data['user_id'] = this._userId;
data['user_nickname'] = this._userNickname;
return data;
}
}

View File

@@ -0,0 +1,245 @@
class DynamicInfoEntityList {
int _code;
String _message;
DynamicInfoEntityData _data;
DynamicInfoEntityList(
{int code, String message, DynamicInfoEntityData data}) {
this._code = code;
this._message = message;
this._data = data;
}
int get code => _code;
set code(int code) => _code = code;
String get message => _message;
set message(String message) => _message = message;
DynamicInfoEntityData get data => _data;
set data(DynamicInfoEntityData data) => _data = data;
DynamicInfoEntityList.fromJson(Map<String, dynamic> json) {
_code = json['code'];
_message = json['message'];
_data = json['data'] != null
? new DynamicInfoEntityData.fromJson(json['data'])
: null;
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['code'] = this._code;
data['message'] = this._message;
if (this._data != null) {
data['data'] = this._data.toJson();
}
return data;
}
}
class DynamicInfoEntityData {
int _dynamicId;
int _opusId;
int _userId;
String _dynamicIntroduce;
int _dynamicTop;
String _dynamicTime;
int _dynamicShareCount;
int _dynamicCommentCount;
int _dynamicSatisfiedCount;
String _dynamicText;
int _dynamicType;
Null _dynamicImg;
DynamicInfoEntityUserInfo _userInfo;
List<DynamicImgs> _dynamicImgs;
DynamicInfoEntityData(
{int dynamicId,
int opusId,
int userId,
String dynamicIntroduce,
int dynamicTop,
String dynamicTime,
int dynamicShareCount,
int dynamicCommentCount,
int dynamicSatisfiedCount,
String dynamicText,
int dynamicType,
Null dynamicImg,
DynamicInfoEntityUserInfo userInfo,
List<DynamicImgs> dynamicImgs}) {
this._dynamicId = dynamicId;
this._opusId = opusId;
this._userId = userId;
this._dynamicIntroduce = dynamicIntroduce;
this._dynamicTop = dynamicTop;
this._dynamicTime = dynamicTime;
this._dynamicShareCount = dynamicShareCount;
this._dynamicCommentCount = dynamicCommentCount;
this._dynamicSatisfiedCount = dynamicSatisfiedCount;
this._dynamicText = dynamicText;
this._dynamicType = dynamicType;
this._dynamicImg = dynamicImg;
this._userInfo = userInfo;
this._dynamicImgs = dynamicImgs;
}
int get dynamicId => _dynamicId;
set dynamicId(int dynamicId) => _dynamicId = dynamicId;
int get opusId => _opusId;
set opusId(int opusId) => _opusId = opusId;
int get userId => _userId;
set userId(int userId) => _userId = userId;
String get dynamicIntroduce => _dynamicIntroduce;
set dynamicIntroduce(String dynamicIntroduce) =>
_dynamicIntroduce = dynamicIntroduce;
int get dynamicTop => _dynamicTop;
set dynamicTop(int dynamicTop) => _dynamicTop = dynamicTop;
String get dynamicTime => _dynamicTime;
set dynamicTime(String dynamicTime) => _dynamicTime = dynamicTime;
int get dynamicShareCount => _dynamicShareCount;
set dynamicShareCount(int dynamicShareCount) =>
_dynamicShareCount = dynamicShareCount;
int get dynamicCommentCount => _dynamicCommentCount;
set dynamicCommentCount(int dynamicCommentCount) =>
_dynamicCommentCount = dynamicCommentCount;
int get dynamicSatisfiedCount => _dynamicSatisfiedCount;
set dynamicSatisfiedCount(int dynamicSatisfiedCount) =>
_dynamicSatisfiedCount = dynamicSatisfiedCount;
String get dynamicText => _dynamicText;
set dynamicText(String dynamicText) => _dynamicText = dynamicText;
int get dynamicType => _dynamicType;
set dynamicType(int dynamicType) => _dynamicType = dynamicType;
Null get dynamicImg => _dynamicImg;
set dynamicImg(Null dynamicImg) => _dynamicImg = dynamicImg;
DynamicInfoEntityUserInfo get userInfo => _userInfo;
set userInfo(DynamicInfoEntityUserInfo userInfo) => _userInfo = userInfo;
List<DynamicImgs> get dynamicImgs => _dynamicImgs;
set dynamicImgs(List<DynamicImgs> dynamicImgs) => _dynamicImgs = dynamicImgs;
DynamicInfoEntityData.fromJson(Map<String, dynamic> json) {
_dynamicId = json['dynamic_id'];
_opusId = json['opus_id'];
_userId = json['user_id'];
_dynamicIntroduce = json['dynamic_introduce'];
_dynamicTop = json['dynamic_top'];
_dynamicTime = json['dynamic_time'];
_dynamicShareCount = json['dynamic_share_count'];
_dynamicCommentCount = json['dynamic_comment_count'];
_dynamicSatisfiedCount = json['dynamic_satisfied_count'];
_dynamicText = json['dynamic_text'];
_dynamicType = json['dynamic_type'];
_dynamicImg = json['dynamic_img'];
_userInfo = json['user_info'] != null
? new DynamicInfoEntityUserInfo.fromJson(json['user_info'])
: null;
if (json['dynamic_imgs'] != null) {
_dynamicImgs = new List<DynamicImgs>();
json['dynamic_imgs'].forEach((v) {
_dynamicImgs.add(new DynamicImgs.fromJson(v));
});
}
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['dynamic_id'] = this._dynamicId;
data['opus_id'] = this._opusId;
data['user_id'] = this._userId;
data['dynamic_introduce'] = this._dynamicIntroduce;
data['dynamic_top'] = this._dynamicTop;
data['dynamic_time'] = this._dynamicTime;
data['dynamic_share_count'] = this._dynamicShareCount;
data['dynamic_comment_count'] = this._dynamicCommentCount;
data['dynamic_satisfied_count'] = this._dynamicSatisfiedCount;
data['dynamic_text'] = this._dynamicText;
data['dynamic_type'] = this._dynamicType;
data['dynamic_img'] = this._dynamicImg;
if (this._userInfo != null) {
data['user_info'] = this._userInfo.toJson();
}
if (this._dynamicImgs != null) {
data['dynamic_imgs'] = this._dynamicImgs.map((v) => v.toJson()).toList();
}
return data;
}
}
class DynamicInfoEntityUserInfo {
int _userId;
String _userHeadImg;
String _userNickname;
DynamicInfoEntityUserInfo(
{int userId, String userHeadImg, String userNickname}) {
this._userId = userId;
this._userHeadImg = userHeadImg;
this._userNickname = userNickname;
}
int get userId => _userId;
set userId(int userId) => _userId = userId;
String get userHeadImg => _userHeadImg;
set userHeadImg(String userHeadImg) => _userHeadImg = userHeadImg;
String get userNickname => _userNickname;
set userNickname(String userNickname) => _userNickname = userNickname;
DynamicInfoEntityUserInfo.fromJson(Map<String, dynamic> json) {
_userId = json['user_id'];
_userHeadImg = json['user_head_img'];
_userNickname = json['user_nickname'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['user_id'] = this._userId;
data['user_head_img'] = this._userHeadImg;
data['user_nickname'] = this._userNickname;
return data;
}
}
class DynamicImgs {
int _imgId;
String _imgUrl;
int _opusId;
int _userId;
int _dynamicId;
DynamicImgs(
{int imgId, String imgUrl, int opusId, int userId, int dynamicId}) {
this._imgId = imgId;
this._imgUrl = imgUrl;
this._opusId = opusId;
this._userId = userId;
this._dynamicId = dynamicId;
}
int get imgId => _imgId;
set imgId(int imgId) => _imgId = imgId;
String get imgUrl => _imgUrl;
set imgUrl(String imgUrl) => _imgUrl = imgUrl;
int get opusId => _opusId;
set opusId(int opusId) => _opusId = opusId;
int get userId => _userId;
set userId(int userId) => _userId = userId;
int get dynamicId => _dynamicId;
set dynamicId(int dynamicId) => _dynamicId = dynamicId;
DynamicImgs.fromJson(Map<String, dynamic> json) {
_imgId = json['img_id'];
_imgUrl = json['img_url'];
_opusId = json['opus_id'];
_userId = json['user_id'];
_dynamicId = json['dynamic_id'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['img_id'] = this._imgId;
data['img_url'] = this._imgUrl;
data['opus_id'] = this._opusId;
data['user_id'] = this._userId;
data['dynamic_id'] = this._dynamicId;
return data;
}
}

View File

@@ -0,0 +1,236 @@
class DynamicPersonalDynamicEntityList {
int _code;
DynamicPersonalDynamicEntityData _data;
String _message;
DynamicPersonalDynamicEntityList(
{int code, DynamicPersonalDynamicEntityData data, String message}) {
this._code = code;
this._data = data;
this._message = message;
}
int get code => _code;
set code(int code) => _code = code;
DynamicPersonalDynamicEntityData get data => _data;
set data(DynamicPersonalDynamicEntityData data) => _data = data;
String get message => _message;
set message(String message) => _message = message;
DynamicPersonalDynamicEntityList.fromJson(Map<String, dynamic> json) {
_code = json['code'];
_data = json['data'] != null
? new DynamicPersonalDynamicEntityData.fromJson(json['data'])
: null;
_message = json['message'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['code'] = this._code;
if (this._data != null) {
data['data'] = this._data.toJson();
}
data['message'] = this._message;
return data;
}
}
class DynamicPersonalDynamicEntityData {
int _currentPage;
int _nextPage;
List<DynamicPersonalDynamicEntity> _result;
int _totalPage;
DynamicPersonalDynamicEntityData(
{int currentPage,
int nextPage,
List<DynamicPersonalDynamicEntity> result,
int totalPage}) {
this._currentPage = currentPage;
this._nextPage = nextPage;
this._result = result;
this._totalPage = totalPage;
}
int get currentPage => _currentPage;
set currentPage(int currentPage) => _currentPage = currentPage;
int get nextPage => _nextPage;
set nextPage(int nextPage) => _nextPage = nextPage;
List<DynamicPersonalDynamicEntity> get result => _result;
set result(List<DynamicPersonalDynamicEntity> result) => _result = result;
int get totalPage => _totalPage;
set totalPage(int totalPage) => _totalPage = totalPage;
DynamicPersonalDynamicEntityData.fromJson(Map<String, dynamic> json) {
_currentPage = json['current_page'];
_nextPage = json['next_page'];
if (json['result'] != null) {
_result = new List<DynamicPersonalDynamicEntity>();
json['result'].forEach((v) {
_result.add(new DynamicPersonalDynamicEntity.fromJson(v));
});
}
_totalPage = json['total_page'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['current_page'] = this._currentPage;
data['next_page'] = this._nextPage;
if (this._result != null) {
data['result'] = this._result.map((v) => v.toJson()).toList();
}
data['total_page'] = this._totalPage;
return data;
}
}
class DynamicPersonalDynamicEntity {
int _dynamicCommentCount;
int _dynamicId;
String _dynamicImg;
String _dynamicIntroduce;
int _dynamicSatisfiedCount;
int _dynamicShareCount;
String _dynamicText;
String _dynamicTime;
int _dynamicTop;
int _dynamicType;
int _opusId;
int _userId;
DynamicPersonalDynamicEntityUserInfo _userInfo;
DynamicPersonalDynamicEntity(
{int dynamicCommentCount,
int dynamicId,
String dynamicImg,
String dynamicIntroduce,
int dynamicSatisfiedCount,
int dynamicShareCount,
String dynamicText,
String dynamicTime,
int dynamicTop,
int dynamicType,
int opusId,
int userId,
DynamicPersonalDynamicEntityUserInfo userInfo}) {
this._dynamicCommentCount = dynamicCommentCount;
this._dynamicId = dynamicId;
this._dynamicImg = dynamicImg;
this._dynamicIntroduce = dynamicIntroduce;
this._dynamicSatisfiedCount = dynamicSatisfiedCount;
this._dynamicShareCount = dynamicShareCount;
this._dynamicText = dynamicText;
this._dynamicTime = dynamicTime;
this._dynamicTop = dynamicTop;
this._dynamicType = dynamicType;
this._opusId = opusId;
this._userId = userId;
this._userInfo = userInfo;
}
int get dynamicCommentCount => _dynamicCommentCount;
set dynamicCommentCount(int dynamicCommentCount) =>
_dynamicCommentCount = dynamicCommentCount;
int get dynamicId => _dynamicId;
set dynamicId(int dynamicId) => _dynamicId = dynamicId;
String get dynamicImg => _dynamicImg;
set dynamicImg(String dynamicImg) => _dynamicImg = dynamicImg;
String get dynamicIntroduce => _dynamicIntroduce;
set dynamicIntroduce(String dynamicIntroduce) =>
_dynamicIntroduce = dynamicIntroduce;
int get dynamicSatisfiedCount => _dynamicSatisfiedCount;
set dynamicSatisfiedCount(int dynamicSatisfiedCount) =>
_dynamicSatisfiedCount = dynamicSatisfiedCount;
int get dynamicShareCount => _dynamicShareCount;
set dynamicShareCount(int dynamicShareCount) =>
_dynamicShareCount = dynamicShareCount;
String get dynamicText => _dynamicText;
set dynamicText(String dynamicText) => _dynamicText = dynamicText;
String get dynamicTime => _dynamicTime;
set dynamicTime(String dynamicTime) => _dynamicTime = dynamicTime;
int get dynamicTop => _dynamicTop;
set dynamicTop(int dynamicTop) => _dynamicTop = dynamicTop;
int get dynamicType => _dynamicType;
set dynamicType(int dynamicType) => _dynamicType = dynamicType;
int get opusId => _opusId;
set opusId(int opusId) => _opusId = opusId;
int get userId => _userId;
set userId(int userId) => _userId = userId;
DynamicPersonalDynamicEntityUserInfo get userInfo => _userInfo;
set userInfo(DynamicPersonalDynamicEntityUserInfo userInfo) =>
_userInfo = userInfo;
DynamicPersonalDynamicEntity.fromJson(Map<String, dynamic> json) {
_dynamicCommentCount = json['dynamic_comment_count'];
_dynamicId = json['dynamic_id'];
_dynamicImg = json['dynamic_img'];
_dynamicIntroduce = json['dynamic_introduce'];
_dynamicSatisfiedCount = json['dynamic_satisfied_count'];
_dynamicShareCount = json['dynamic_share_count'];
_dynamicText = json['dynamic_text'];
_dynamicTime = json['dynamic_time'];
_dynamicTop = json['dynamic_top'];
_dynamicType = json['dynamic_type'];
_opusId = json['opus_id'];
_userId = json['user_id'];
_userInfo = json['user_info'] != null
? new DynamicPersonalDynamicEntityUserInfo.fromJson(json['user_info'])
: null;
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['dynamic_comment_count'] = this._dynamicCommentCount;
data['dynamic_id'] = this._dynamicId;
data['dynamic_img'] = this._dynamicImg;
data['dynamic_introduce'] = this._dynamicIntroduce;
data['dynamic_satisfied_count'] = this._dynamicSatisfiedCount;
data['dynamic_share_count'] = this._dynamicShareCount;
data['dynamic_text'] = this._dynamicText;
data['dynamic_time'] = this._dynamicTime;
data['dynamic_top'] = this._dynamicTop;
data['dynamic_type'] = this._dynamicType;
data['opus_id'] = this._opusId;
data['user_id'] = this._userId;
if (this._userInfo != null) {
data['user_info'] = this._userInfo.toJson();
}
return data;
}
}
class DynamicPersonalDynamicEntityUserInfo {
String _userHeadImg;
int _userId;
String _userNickname;
DynamicPersonalDynamicEntityUserInfo(
{String userHeadImg, int userId, String userNickname}) {
this._userHeadImg = userHeadImg;
this._userId = userId;
this._userNickname = userNickname;
}
String get userHeadImg => _userHeadImg;
set userHeadImg(String userHeadImg) => _userHeadImg = userHeadImg;
int get userId => _userId;
set userId(int userId) => _userId = userId;
String get userNickname => _userNickname;
set userNickname(String userNickname) => _userNickname = userNickname;
DynamicPersonalDynamicEntityUserInfo.fromJson(Map<String, dynamic> json) {
_userHeadImg = json['user_head_img'];
_userId = json['user_id'];
_userNickname = json['user_nickname'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['user_head_img'] = this._userHeadImg;
data['user_id'] = this._userId;
data['user_nickname'] = this._userNickname;
return data;
}
}

View File

@@ -0,0 +1,234 @@
class DynamicTabsDynamicEntityList {
int _code;
DynamicTabsDynamicEntityData _data;
String _message;
DynamicTabsDynamicEntityList(
{int code, DynamicTabsDynamicEntityData data, String message}) {
this._code = code;
this._data = data;
this._message = message;
}
int get code => _code;
set code(int code) => _code = code;
DynamicTabsDynamicEntityData get data => _data;
set data(DynamicTabsDynamicEntityData data) => _data = data;
String get message => _message;
set message(String message) => _message = message;
DynamicTabsDynamicEntityList.fromJson(Map<String, dynamic> json) {
_code = json['code'];
_data = json['data'] != null
? new DynamicTabsDynamicEntityData.fromJson(json['data'])
: null;
_message = json['message'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['code'] = this._code;
if (this._data != null) {
data['data'] = this._data.toJson();
}
data['message'] = this._message;
return data;
}
}
class DynamicTabsDynamicEntityData {
int _currentPage;
int _nextPage;
List<DynamicTabsDynamicEntity> _result;
int _totalPage;
DynamicTabsDynamicEntityData(
{int currentPage,
int nextPage,
List<DynamicTabsDynamicEntity> result,
int totalPage}) {
this._currentPage = currentPage;
this._nextPage = nextPage;
this._result = result;
this._totalPage = totalPage;
}
int get currentPage => _currentPage;
set currentPage(int currentPage) => _currentPage = currentPage;
int get nextPage => _nextPage;
set nextPage(int nextPage) => _nextPage = nextPage;
List<DynamicTabsDynamicEntity> get result => _result;
set result(List<DynamicTabsDynamicEntity> result) => _result = result;
int get totalPage => _totalPage;
set totalPage(int totalPage) => _totalPage = totalPage;
DynamicTabsDynamicEntityData.fromJson(Map<String, dynamic> json) {
_currentPage = json['current_page'];
_nextPage = json['next_page'];
if (json['result'] != null) {
_result = new List<DynamicTabsDynamicEntity>();
json['result'].forEach((v) {
_result.add(new DynamicTabsDynamicEntity.fromJson(v));
});
}
_totalPage = json['total_page'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['current_page'] = this._currentPage;
data['next_page'] = this._nextPage;
if (this._result != null) {
data['result'] = this._result.map((v) => v.toJson()).toList();
}
data['total_page'] = this._totalPage;
return data;
}
}
class DynamicTabsDynamicEntity {
int _dynamicCommentCount;
int _dynamicId;
String _dynamicImg;
String _dynamicIntroduce;
int _dynamicSatisfiedCount;
int _dynamicShareCount;
String _dynamicText;
String _dynamicTime;
int _dynamicTop;
int _dynamicType;
int _opusId;
int _userId;
DynamicUserInfo _userInfo;
DynamicTabsDynamicEntity(
{int dynamicCommentCount,
int dynamicId,
String dynamicImg,
String dynamicIntroduce,
int dynamicSatisfiedCount,
int dynamicShareCount,
String dynamicText,
String dynamicTime,
int dynamicTop,
int dynamicType,
int opusId,
int userId,
DynamicUserInfo userInfo}) {
this._dynamicCommentCount = dynamicCommentCount;
this._dynamicId = dynamicId;
this._dynamicImg = dynamicImg;
this._dynamicIntroduce = dynamicIntroduce;
this._dynamicSatisfiedCount = dynamicSatisfiedCount;
this._dynamicShareCount = dynamicShareCount;
this._dynamicText = dynamicText;
this._dynamicTime = dynamicTime;
this._dynamicTop = dynamicTop;
this._dynamicType = dynamicType;
this._opusId = opusId;
this._userId = userId;
this._userInfo = userInfo;
}
int get dynamicCommentCount => _dynamicCommentCount;
set dynamicCommentCount(int dynamicCommentCount) =>
_dynamicCommentCount = dynamicCommentCount;
int get dynamicId => _dynamicId;
set dynamicId(int dynamicId) => _dynamicId = dynamicId;
String get dynamicImg => _dynamicImg;
set dynamicImg(String dynamicImg) => _dynamicImg = dynamicImg;
String get dynamicIntroduce => _dynamicIntroduce;
set dynamicIntroduce(String dynamicIntroduce) =>
_dynamicIntroduce = dynamicIntroduce;
int get dynamicSatisfiedCount => _dynamicSatisfiedCount;
set dynamicSatisfiedCount(int dynamicSatisfiedCount) =>
_dynamicSatisfiedCount = dynamicSatisfiedCount;
int get dynamicShareCount => _dynamicShareCount;
set dynamicShareCount(int dynamicShareCount) =>
_dynamicShareCount = dynamicShareCount;
String get dynamicText => _dynamicText;
set dynamicText(String dynamicText) => _dynamicText = dynamicText;
String get dynamicTime => _dynamicTime;
set dynamicTime(String dynamicTime) => _dynamicTime = dynamicTime;
int get dynamicTop => _dynamicTop;
set dynamicTop(int dynamicTop) => _dynamicTop = dynamicTop;
int get dynamicType => _dynamicType;
set dynamicType(int dynamicType) => _dynamicType = dynamicType;
int get opusId => _opusId;
set opusId(int opusId) => _opusId = opusId;
int get userId => _userId;
set userId(int userId) => _userId = userId;
DynamicUserInfo get userInfo => _userInfo;
set userInfo(DynamicUserInfo userInfo) => _userInfo = userInfo;
DynamicTabsDynamicEntity.fromJson(Map<String, dynamic> json) {
_dynamicCommentCount = json['dynamic_comment_count'];
_dynamicId = json['dynamic_id'];
_dynamicImg = json['dynamic_img'];
_dynamicIntroduce = json['dynamic_introduce'];
_dynamicSatisfiedCount = json['dynamic_satisfied_count'];
_dynamicShareCount = json['dynamic_share_count'];
_dynamicText = json['dynamic_text'];
_dynamicTime = json['dynamic_time'];
_dynamicTop = json['dynamic_top'];
_dynamicType = json['dynamic_type'];
_opusId = json['opus_id'];
_userId = json['user_id'];
_userInfo = json['user_info'] != null
? new DynamicUserInfo.fromJson(json['user_info'])
: null;
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['dynamic_comment_count'] = this._dynamicCommentCount;
data['dynamic_id'] = this._dynamicId;
data['dynamic_img'] = this._dynamicImg;
data['dynamic_introduce'] = this._dynamicIntroduce;
data['dynamic_satisfied_count'] = this._dynamicSatisfiedCount;
data['dynamic_share_count'] = this._dynamicShareCount;
data['dynamic_text'] = this._dynamicText;
data['dynamic_time'] = this._dynamicTime;
data['dynamic_top'] = this._dynamicTop;
data['dynamic_type'] = this._dynamicType;
data['opus_id'] = this._opusId;
data['user_id'] = this._userId;
if (this._userInfo != null) {
data['user_info'] = this._userInfo.toJson();
}
return data;
}
}
class DynamicUserInfo {
String _userHeadImg;
int _userId;
String _userNickname;
DynamicUserInfo({String userHeadImg, int userId, String userNickname}) {
this._userHeadImg = userHeadImg;
this._userId = userId;
this._userNickname = userNickname;
}
String get userHeadImg => _userHeadImg;
set userHeadImg(String userHeadImg) => _userHeadImg = userHeadImg;
int get userId => _userId;
set userId(int userId) => _userId = userId;
String get userNickname => _userNickname;
set userNickname(String userNickname) => _userNickname = userNickname;
DynamicUserInfo.fromJson(Map<String, dynamic> json) {
_userHeadImg = json['user_head_img'];
_userId = json['user_id'];
_userNickname = json['user_nickname'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['user_head_img'] = this._userHeadImg;
data['user_id'] = this._userId;
data['user_nickname'] = this._userNickname;
return data;
}
}

View File

@@ -0,0 +1,32 @@
class EmptyEntityList {
int _code;
Null _data;
String _message;
EmptyEntityList({int code, Null data, String message}) {
this._code = code;
this._data = data;
this._message = message;
}
int get code => _code;
set code(int code) => _code = code;
Null get data => _data;
set data(Null data) => _data = data;
String get message => _message;
set message(String message) => _message = message;
EmptyEntityList.fromJson(Map<String, dynamic> json) {
_code = json['code'];
_data = json['data'];
_message = json['message'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['code'] = this._code;
data['data'] = this._data;
data['message'] = this._message;
return data;
}
}

View File

@@ -0,0 +1,215 @@
class FansUserListEntityList {
int _code;
String _message;
FansUserListEntityData _data;
FansUserListEntityList(
{int code, String message, FansUserListEntityData data}) {
this._code = code;
this._message = message;
this._data = data;
}
int get code => _code;
set code(int code) => _code = code;
String get message => _message;
set message(String message) => _message = message;
FansUserListEntityData get data => _data;
set data(FansUserListEntityData data) => _data = data;
FansUserListEntityList.fromJson(Map<String, dynamic> json) {
_code = json['code'];
_message = json['message'];
_data = json['data'] != null
? new FansUserListEntityData.fromJson(json['data'])
: null;
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['code'] = this._code;
data['message'] = this._message;
if (this._data != null) {
data['data'] = this._data.toJson();
}
return data;
}
}
class FansUserListEntityData {
int _nextPage;
List<FansUserListEntityResult> _result;
int _totalPage;
int _currentPage;
FansUserListEntityData(
{int nextPage,
List<FansUserListEntityResult> result,
int totalPage,
int currentPage}) {
this._nextPage = nextPage;
this._result = result;
this._totalPage = totalPage;
this._currentPage = currentPage;
}
int get nextPage => _nextPage;
set nextPage(int nextPage) => _nextPage = nextPage;
List<FansUserListEntityResult> get result => _result;
set result(List<FansUserListEntityResult> result) => _result = result;
int get totalPage => _totalPage;
set totalPage(int totalPage) => _totalPage = totalPage;
int get currentPage => _currentPage;
set currentPage(int currentPage) => _currentPage = currentPage;
FansUserListEntityData.fromJson(Map<String, dynamic> json) {
_nextPage = json['next_page'];
if (json['result'] != null) {
_result = new List<FansUserListEntityResult>();
json['result'].forEach((v) {
_result.add(new FansUserListEntityResult.fromJson(v));
});
}
_totalPage = json['total_page'];
_currentPage = json['current_page'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['next_page'] = this._nextPage;
if (this._result != null) {
data['result'] = this._result.map((v) => v.toJson()).toList();
}
data['total_page'] = this._totalPage;
data['current_page'] = this._currentPage;
return data;
}
}
class FansUserListEntityResult {
int _userId;
String _userPhone;
String _userRealName;
String _userIdCard;
String _userEmail;
String _userBankCard;
String _userSex;
String _userWork;
String _userHeadImg;
String _userNickname;
String _userUid;
String _userRegTime;
String _userBirthday;
String _userConstellation;
String _userAutograph;
bool _haveFollow;
FansUserListEntityResult(
{int userId,
String userPhone,
String userRealName,
String userIdCard,
String userEmail,
String userBankCard,
String userSex,
String userWork,
String userHeadImg,
String userNickname,
String userUid,
String userRegTime,
String userBirthday,
String userConstellation,
String userAutograph,
bool haveFollow}) {
this._userId = userId;
this._userPhone = userPhone;
this._userRealName = userRealName;
this._userIdCard = userIdCard;
this._userEmail = userEmail;
this._userBankCard = userBankCard;
this._userSex = userSex;
this._userWork = userWork;
this._userHeadImg = userHeadImg;
this._userNickname = userNickname;
this._userUid = userUid;
this._userRegTime = userRegTime;
this._userBirthday = userBirthday;
this._userConstellation = userConstellation;
this._userAutograph = userAutograph;
this._haveFollow = haveFollow;
}
int get userId => _userId;
set userId(int userId) => _userId = userId;
String get userPhone => _userPhone;
set userPhone(String userPhone) => _userPhone = userPhone;
String get userRealName => _userRealName;
set userRealName(String userRealName) => _userRealName = userRealName;
String get userIdCard => _userIdCard;
set userIdCard(String userIdCard) => _userIdCard = userIdCard;
String get userEmail => _userEmail;
set userEmail(String userEmail) => _userEmail = userEmail;
String get userBankCard => _userBankCard;
set userBankCard(String userBankCard) => _userBankCard = userBankCard;
String get userSex => _userSex;
set userSex(String userSex) => _userSex = userSex;
String get userWork => _userWork;
set userWork(String userWork) => _userWork = userWork;
String get userHeadImg => _userHeadImg;
set userHeadImg(String userHeadImg) => _userHeadImg = userHeadImg;
String get userNickname => _userNickname;
set userNickname(String userNickname) => _userNickname = userNickname;
String get userUid => _userUid;
set userUid(String userUid) => _userUid = userUid;
String get userRegTime => _userRegTime;
set userRegTime(String userRegTime) => _userRegTime = userRegTime;
String get userBirthday => _userBirthday;
set userBirthday(String userBirthday) => _userBirthday = userBirthday;
String get userConstellation => _userConstellation;
set userConstellation(String userConstellation) =>
_userConstellation = userConstellation;
String get userAutograph => _userAutograph;
set userAutograph(String userAutograph) => _userAutograph = userAutograph;
bool get haveFollow => _haveFollow;
set haveFollow(bool haveFollow) => _haveFollow = haveFollow;
FansUserListEntityResult.fromJson(Map<String, dynamic> json) {
_userId = json['user_id'];
_userPhone = json['user_phone'];
_userRealName = json['user_real_name'];
_userIdCard = json['user_id_card'];
_userEmail = json['user_email'];
_userBankCard = json['user_bank_card'];
_userSex = json['user_sex'];
_userWork = json['user_work'];
_userHeadImg = json['user_head_img'];
_userNickname = json['user_nickname'];
_userUid = json['user_uid'];
_userRegTime = json['user_reg_time'];
_userBirthday = json['user_birthday'];
_userConstellation = json['user_constellation'];
_userAutograph = json['user_autograph'];
_haveFollow = json['have_follow'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['user_id'] = this._userId;
data['user_phone'] = this._userPhone;
data['user_real_name'] = this._userRealName;
data['user_id_card'] = this._userIdCard;
data['user_email'] = this._userEmail;
data['user_bank_card'] = this._userBankCard;
data['user_sex'] = this._userSex;
data['user_work'] = this._userWork;
data['user_head_img'] = this._userHeadImg;
data['user_nickname'] = this._userNickname;
data['user_uid'] = this._userUid;
data['user_reg_time'] = this._userRegTime;
data['user_birthday'] = this._userBirthday;
data['user_constellation'] = this._userConstellation;
data['user_autograph'] = this._userAutograph;
data['have_follow'] = this._haveFollow;
return data;
}
}

View File

@@ -0,0 +1,205 @@
class FollowList {
int _code;
FollowData _data;
String _message;
FollowList({int code, FollowData data, String message}) {
this._code = code;
this._data = data;
this._message = message;
}
int get code => _code;
set code(int code) => _code = code;
FollowData get data => _data;
set data(FollowData data) => _data = data;
String get message => _message;
set message(String message) => _message = message;
FollowList.fromJson(Map<String, dynamic> json) {
_code = json['code'];
_data = json['data'] != null ? new FollowData.fromJson(json['data']) : null;
_message = json['message'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['code'] = this._code;
if (this._data != null) {
data['data'] = this._data.toJson();
}
data['message'] = this._message;
return data;
}
}
class FollowData {
int _currentPage;
int _nextPage;
List<FollowResult> _result;
int _totalPage;
FollowData(
{int currentPage,
int nextPage,
List<FollowResult> result,
int totalPage}) {
this._currentPage = currentPage;
this._nextPage = nextPage;
this._result = result;
this._totalPage = totalPage;
}
int get currentPage => _currentPage;
set currentPage(int currentPage) => _currentPage = currentPage;
int get nextPage => _nextPage;
set nextPage(int nextPage) => _nextPage = nextPage;
List<FollowResult> get result => _result;
set result(List<FollowResult> result) => _result = result;
int get totalPage => _totalPage;
set totalPage(int totalPage) => _totalPage = totalPage;
FollowData.fromJson(Map<String, dynamic> json) {
_currentPage = json['current_page'];
_nextPage = json['next_page'];
if (json['result'] != null) {
_result = new List<FollowResult>();
json['result'].forEach((v) {
_result.add(new FollowResult.fromJson(v));
});
}
_totalPage = json['total_page'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['current_page'] = this._currentPage;
data['next_page'] = this._nextPage;
if (this._result != null) {
data['result'] = this._result.map((v) => v.toJson()).toList();
}
data['total_page'] = this._totalPage;
return data;
}
}
class FollowResult {
int _opusCollection;
int _opusFollow;
int _opusId;
String _opusImg;
String _opusIntroduce;
int _opusIsEdit;
int _opusJurisdiction;
int _opusOriginal;
int _opusSatisfied;
int _opusSee;
int _opusStatus;
String _opusTime;
String _opusTitle;
int _opusType;
int _userId;
FollowResult(
{int opusCollection,
int opusFollow,
int opusId,
String opusImg,
String opusIntroduce,
int opusIsEdit,
int opusJurisdiction,
int opusOriginal,
int opusSatisfied,
int opusSee,
int opusStatus,
String opusTime,
String opusTitle,
int opusType,
int userId}) {
this._opusCollection = opusCollection;
this._opusFollow = opusFollow;
this._opusId = opusId;
this._opusImg = opusImg;
this._opusIntroduce = opusIntroduce;
this._opusIsEdit = opusIsEdit;
this._opusJurisdiction = opusJurisdiction;
this._opusOriginal = opusOriginal;
this._opusSatisfied = opusSatisfied;
this._opusSee = opusSee;
this._opusStatus = opusStatus;
this._opusTime = opusTime;
this._opusTitle = opusTitle;
this._opusType = opusType;
this._userId = userId;
}
int get opusCollection => _opusCollection;
set opusCollection(int opusCollection) => _opusCollection = opusCollection;
int get opusFollow => _opusFollow;
set opusFollow(int opusFollow) => _opusFollow = opusFollow;
int get opusId => _opusId;
set opusId(int opusId) => _opusId = opusId;
String get opusImg => _opusImg;
set opusImg(String opusImg) => _opusImg = opusImg;
String get opusIntroduce => _opusIntroduce;
set opusIntroduce(String opusIntroduce) => _opusIntroduce = opusIntroduce;
int get opusIsEdit => _opusIsEdit;
set opusIsEdit(int opusIsEdit) => _opusIsEdit = opusIsEdit;
int get opusJurisdiction => _opusJurisdiction;
set opusJurisdiction(int opusJurisdiction) =>
_opusJurisdiction = opusJurisdiction;
int get opusOriginal => _opusOriginal;
set opusOriginal(int opusOriginal) => _opusOriginal = opusOriginal;
int get opusSatisfied => _opusSatisfied;
set opusSatisfied(int opusSatisfied) => _opusSatisfied = opusSatisfied;
int get opusSee => _opusSee;
set opusSee(int opusSee) => _opusSee = opusSee;
int get opusStatus => _opusStatus;
set opusStatus(int opusStatus) => _opusStatus = opusStatus;
String get opusTime => _opusTime;
set opusTime(String opusTime) => _opusTime = opusTime;
String get opusTitle => _opusTitle;
set opusTitle(String opusTitle) => _opusTitle = opusTitle;
int get opusType => _opusType;
set opusType(int opusType) => _opusType = opusType;
int get userId => _userId;
set userId(int userId) => _userId = userId;
FollowResult.fromJson(Map<String, dynamic> json) {
_opusCollection = json['opus_collection'];
_opusFollow = json['opus_follow'];
_opusId = json['opus_id'];
_opusImg = json['opus_img'];
_opusIntroduce = json['opus_introduce'];
_opusIsEdit = json['opus_is_edit'];
_opusJurisdiction = json['opus_jurisdiction'];
_opusOriginal = json['opus_original'];
_opusSatisfied = json['opus_satisfied'];
_opusSee = json['opus_see'];
_opusStatus = json['opus_status'];
_opusTime = json['opus_time'];
_opusTitle = json['opus_title'];
_opusType = json['opus_type'];
_userId = json['user_id'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['opus_collection'] = this._opusCollection;
data['opus_follow'] = this._opusFollow;
data['opus_id'] = this._opusId;
data['opus_img'] = this._opusImg;
data['opus_introduce'] = this._opusIntroduce;
data['opus_is_edit'] = this._opusIsEdit;
data['opus_jurisdiction'] = this._opusJurisdiction;
data['opus_original'] = this._opusOriginal;
data['opus_satisfied'] = this._opusSatisfied;
data['opus_see'] = this._opusSee;
data['opus_status'] = this._opusStatus;
data['opus_time'] = this._opusTime;
data['opus_title'] = this._opusTitle;
data['opus_type'] = this._opusType;
data['user_id'] = this._userId;
return data;
}
}

View File

@@ -0,0 +1,215 @@
class FollowUserListEntityList {
int _code;
String _message;
FollowUserListEntityData _data;
FollowUserListEntityList(
{int code, String message, FollowUserListEntityData data}) {
this._code = code;
this._message = message;
this._data = data;
}
int get code => _code;
set code(int code) => _code = code;
String get message => _message;
set message(String message) => _message = message;
FollowUserListEntityData get data => _data;
set data(FollowUserListEntityData data) => _data = data;
FollowUserListEntityList.fromJson(Map<String, dynamic> json) {
_code = json['code'];
_message = json['message'];
_data = json['data'] != null
? new FollowUserListEntityData.fromJson(json['data'])
: null;
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['code'] = this._code;
data['message'] = this._message;
if (this._data != null) {
data['data'] = this._data.toJson();
}
return data;
}
}
class FollowUserListEntityData {
int _nextPage;
List<FollowUserListEntityResult> _result;
int _totalPage;
int _currentPage;
FollowUserListEntityData(
{int nextPage,
List<FollowUserListEntityResult> result,
int totalPage,
int currentPage}) {
this._nextPage = nextPage;
this._result = result;
this._totalPage = totalPage;
this._currentPage = currentPage;
}
int get nextPage => _nextPage;
set nextPage(int nextPage) => _nextPage = nextPage;
List<FollowUserListEntityResult> get result => _result;
set result(List<FollowUserListEntityResult> result) => _result = result;
int get totalPage => _totalPage;
set totalPage(int totalPage) => _totalPage = totalPage;
int get currentPage => _currentPage;
set currentPage(int currentPage) => _currentPage = currentPage;
FollowUserListEntityData.fromJson(Map<String, dynamic> json) {
_nextPage = json['next_page'];
if (json['result'] != null) {
_result = new List<FollowUserListEntityResult>();
json['result'].forEach((v) {
_result.add(new FollowUserListEntityResult.fromJson(v));
});
}
_totalPage = json['total_page'];
_currentPage = json['current_page'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['next_page'] = this._nextPage;
if (this._result != null) {
data['result'] = this._result.map((v) => v.toJson()).toList();
}
data['total_page'] = this._totalPage;
data['current_page'] = this._currentPage;
return data;
}
}
class FollowUserListEntityResult {
int _userId;
String _userPhone;
String _userRealName;
String _userIdCard;
String _userEmail;
String _userBankCard;
String _userSex;
String _userWork;
String _userHeadImg;
String _userNickname;
String _userUid;
String _userRegTime;
String _userBirthday;
String _userConstellation;
String _userAutograph;
bool _haveFollow;
FollowUserListEntityResult(
{int userId,
String userPhone,
String userRealName,
String userIdCard,
String userEmail,
String userBankCard,
String userSex,
String userWork,
String userHeadImg,
String userNickname,
String userUid,
String userRegTime,
String userBirthday,
String userConstellation,
String userAutograph,
bool haveFollow}) {
this._userId = userId;
this._userPhone = userPhone;
this._userRealName = userRealName;
this._userIdCard = userIdCard;
this._userEmail = userEmail;
this._userBankCard = userBankCard;
this._userSex = userSex;
this._userWork = userWork;
this._userHeadImg = userHeadImg;
this._userNickname = userNickname;
this._userUid = userUid;
this._userRegTime = userRegTime;
this._userBirthday = userBirthday;
this._userConstellation = userConstellation;
this._userAutograph = userAutograph;
this._haveFollow = haveFollow;
}
int get userId => _userId;
set userId(int userId) => _userId = userId;
String get userPhone => _userPhone;
set userPhone(String userPhone) => _userPhone = userPhone;
String get userRealName => _userRealName;
set userRealName(String userRealName) => _userRealName = userRealName;
String get userIdCard => _userIdCard;
set userIdCard(String userIdCard) => _userIdCard = userIdCard;
String get userEmail => _userEmail;
set userEmail(String userEmail) => _userEmail = userEmail;
String get userBankCard => _userBankCard;
set userBankCard(String userBankCard) => _userBankCard = userBankCard;
String get userSex => _userSex;
set userSex(String userSex) => _userSex = userSex;
String get userWork => _userWork;
set userWork(String userWork) => _userWork = userWork;
String get userHeadImg => _userHeadImg;
set userHeadImg(String userHeadImg) => _userHeadImg = userHeadImg;
String get userNickname => _userNickname;
set userNickname(String userNickname) => _userNickname = userNickname;
String get userUid => _userUid;
set userUid(String userUid) => _userUid = userUid;
String get userRegTime => _userRegTime;
set userRegTime(String userRegTime) => _userRegTime = userRegTime;
String get userBirthday => _userBirthday;
set userBirthday(String userBirthday) => _userBirthday = userBirthday;
String get userConstellation => _userConstellation;
set userConstellation(String userConstellation) =>
_userConstellation = userConstellation;
String get userAutograph => _userAutograph;
set userAutograph(String userAutograph) => _userAutograph = userAutograph;
bool get haveFollow => _haveFollow;
set haveFollow(bool haveFollow) => _haveFollow = haveFollow;
FollowUserListEntityResult.fromJson(Map<String, dynamic> json) {
_userId = json['user_id'];
_userPhone = json['user_phone'];
_userRealName = json['user_real_name'];
_userIdCard = json['user_id_card'];
_userEmail = json['user_email'];
_userBankCard = json['user_bank_card'];
_userSex = json['user_sex'];
_userWork = json['user_work'];
_userHeadImg = json['user_head_img'];
_userNickname = json['user_nickname'];
_userUid = json['user_uid'];
_userRegTime = json['user_reg_time'];
_userBirthday = json['user_birthday'];
_userConstellation = json['user_constellation'];
_userAutograph = json['user_autograph'];
_haveFollow = json['have_follow'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['user_id'] = this._userId;
data['user_phone'] = this._userPhone;
data['user_real_name'] = this._userRealName;
data['user_id_card'] = this._userIdCard;
data['user_email'] = this._userEmail;
data['user_bank_card'] = this._userBankCard;
data['user_sex'] = this._userSex;
data['user_work'] = this._userWork;
data['user_head_img'] = this._userHeadImg;
data['user_nickname'] = this._userNickname;
data['user_uid'] = this._userUid;
data['user_reg_time'] = this._userRegTime;
data['user_birthday'] = this._userBirthday;
data['user_constellation'] = this._userConstellation;
data['user_autograph'] = this._userAutograph;
data['have_follow'] = this._haveFollow;
return data;
}
}

View File

@@ -0,0 +1,26 @@
import 'dart:io';
import 'package:image_picker/image_picker.dart';
/*
选择后的图片实体
*/
class ImagePickerEntity {
// 图片地址
File path;
// 图片文件
PickedFile pickedFile;
String netWorkPath;
ImagePickerEntity({this.path, this.pickedFile, this.netWorkPath});
File get getPath => path;
set setPath(File path) => path = path;
PickedFile get getPickedFile => pickedFile;
set setPickedFile(PickedFile pickedFile) => pickedFile = pickedFile;
String get getNetWorkPath => netWorkPath;
set setNetWorkPath(File netWorkPath) => netWorkPath = netWorkPath;
}

View File

@@ -0,0 +1,207 @@
class OpusListEntityList {
int _code;
String _message;
OpusListEntityData _data;
OpusListEntityList({int code, String message, OpusListEntityData data}) {
this._code = code;
this._message = message;
this._data = data;
}
int get code => _code;
set code(int code) => _code = code;
String get message => _message;
set message(String message) => _message = message;
OpusListEntityData get data => _data;
set data(OpusListEntityData data) => _data = data;
OpusListEntityList.fromJson(Map<String, dynamic> json) {
_code = json['code'];
_message = json['message'];
_data = json['data'] != null
? new OpusListEntityData.fromJson(json['data'])
: null;
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['code'] = this._code;
data['message'] = this._message;
if (this._data != null) {
data['data'] = this._data.toJson();
}
return data;
}
}
class OpusListEntityData {
int _nextPage;
List<OpusListEntityResult> _result;
int _totalPage;
int _currentPage;
OpusListEntityData(
{int nextPage,
List<OpusListEntityResult> result,
int totalPage,
int currentPage}) {
this._nextPage = nextPage;
this._result = result;
this._totalPage = totalPage;
this._currentPage = currentPage;
}
int get nextPage => _nextPage;
set nextPage(int nextPage) => _nextPage = nextPage;
List<OpusListEntityResult> get result => _result;
set result(List<OpusListEntityResult> result) => _result = result;
int get totalPage => _totalPage;
set totalPage(int totalPage) => _totalPage = totalPage;
int get currentPage => _currentPage;
set currentPage(int currentPage) => _currentPage = currentPage;
OpusListEntityData.fromJson(Map<String, dynamic> json) {
_nextPage = json['next_page'];
if (json['result'] != null) {
_result = new List<OpusListEntityResult>();
json['result'].forEach((v) {
_result.add(new OpusListEntityResult.fromJson(v));
});
}
_totalPage = json['total_page'];
_currentPage = json['current_page'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['next_page'] = this._nextPage;
if (this._result != null) {
data['result'] = this._result.map((v) => v.toJson()).toList();
}
data['total_page'] = this._totalPage;
data['current_page'] = this._currentPage;
return data;
}
}
class OpusListEntityResult {
int _opusId;
int _userId;
String _opusTitle;
String _opusIntroduce;
String _opusTime;
int _opusSatisfied;
int _opusSee;
int _opusFollow;
int _opusCollection;
String _opusImg;
int _opusStatus;
int _opusType;
int _opusOriginal;
int _opusJurisdiction;
int _opusIsEdit;
OpusListEntityResult(
{int opusId,
int userId,
String opusTitle,
String opusIntroduce,
String opusTime,
int opusSatisfied,
int opusSee,
int opusFollow,
int opusCollection,
String opusImg,
int opusStatus,
int opusType,
int opusOriginal,
int opusJurisdiction,
int opusIsEdit}) {
this._opusId = opusId;
this._userId = userId;
this._opusTitle = opusTitle;
this._opusIntroduce = opusIntroduce;
this._opusTime = opusTime;
this._opusSatisfied = opusSatisfied;
this._opusSee = opusSee;
this._opusFollow = opusFollow;
this._opusCollection = opusCollection;
this._opusImg = opusImg;
this._opusStatus = opusStatus;
this._opusType = opusType;
this._opusOriginal = opusOriginal;
this._opusJurisdiction = opusJurisdiction;
this._opusIsEdit = opusIsEdit;
}
int get opusId => _opusId;
set opusId(int opusId) => _opusId = opusId;
int get userId => _userId;
set userId(int userId) => _userId = userId;
String get opusTitle => _opusTitle;
set opusTitle(String opusTitle) => _opusTitle = opusTitle;
String get opusIntroduce => _opusIntroduce;
set opusIntroduce(String opusIntroduce) => _opusIntroduce = opusIntroduce;
String get opusTime => _opusTime;
set opusTime(String opusTime) => _opusTime = opusTime;
int get opusSatisfied => _opusSatisfied;
set opusSatisfied(int opusSatisfied) => _opusSatisfied = opusSatisfied;
int get opusSee => _opusSee;
set opusSee(int opusSee) => _opusSee = opusSee;
int get opusFollow => _opusFollow;
set opusFollow(int opusFollow) => _opusFollow = opusFollow;
int get opusCollection => _opusCollection;
set opusCollection(int opusCollection) => _opusCollection = opusCollection;
String get opusImg => _opusImg;
set opusImg(String opusImg) => _opusImg = opusImg;
int get opusStatus => _opusStatus;
set opusStatus(int opusStatus) => _opusStatus = opusStatus;
int get opusType => _opusType;
set opusType(int opusType) => _opusType = opusType;
int get opusOriginal => _opusOriginal;
set opusOriginal(int opusOriginal) => _opusOriginal = opusOriginal;
int get opusJurisdiction => _opusJurisdiction;
set opusJurisdiction(int opusJurisdiction) =>
_opusJurisdiction = opusJurisdiction;
int get opusIsEdit => _opusIsEdit;
set opusIsEdit(int opusIsEdit) => _opusIsEdit = opusIsEdit;
OpusListEntityResult.fromJson(Map<String, dynamic> json) {
_opusId = json['opus_id'];
_userId = json['user_id'];
_opusTitle = json['opus_title'];
_opusIntroduce = json['opus_introduce'];
_opusTime = json['opus_time'];
_opusSatisfied = json['opus_satisfied'];
_opusSee = json['opus_see'];
_opusFollow = json['opus_follow'];
_opusCollection = json['opus_collection'];
_opusImg = json['opus_img'];
_opusStatus = json['opus_status'];
_opusType = json['opus_type'];
_opusOriginal = json['opus_original'];
_opusJurisdiction = json['opus_jurisdiction'];
_opusIsEdit = json['opus_is_edit'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['opus_id'] = this._opusId;
data['user_id'] = this._userId;
data['opus_title'] = this._opusTitle;
data['opus_introduce'] = this._opusIntroduce;
data['opus_time'] = this._opusTime;
data['opus_satisfied'] = this._opusSatisfied;
data['opus_see'] = this._opusSee;
data['opus_follow'] = this._opusFollow;
data['opus_collection'] = this._opusCollection;
data['opus_img'] = this._opusImg;
data['opus_status'] = this._opusStatus;
data['opus_type'] = this._opusType;
data['opus_original'] = this._opusOriginal;
data['opus_jurisdiction'] = this._opusJurisdiction;
data['opus_is_edit'] = this._opusIsEdit;
return data;
}
}

View File

@@ -0,0 +1,558 @@
class OpusOpusInfoEntityList {
int _code;
String _message;
OpusOpusInfoEntityData _data;
OpusOpusInfoEntityList(
{int code, String message, OpusOpusInfoEntityData data}) {
this._code = code;
this._message = message;
this._data = data;
}
int get code => _code;
set code(int code) => _code = code;
String get message => _message;
set message(String message) => _message = message;
OpusOpusInfoEntityData get data => _data;
set data(OpusOpusInfoEntityData data) => _data = data;
OpusOpusInfoEntityList.fromJson(Map<String, dynamic> json) {
_code = json['code'];
_message = json['message'];
_data = json['data'] != null
? new OpusOpusInfoEntityData.fromJson(json['data'])
: null;
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['code'] = this._code;
data['message'] = this._message;
if (this._data != null) {
data['data'] = this._data.toJson();
}
return data;
}
}
class OpusOpusInfoEntityData {
int _opusId;
int _userId;
String _opusTitle;
String _opusIntroduce;
String _opusTime;
int _opusSatisfied;
int _opusSee;
int _opusFollow;
int _opusCollection;
String _opusImg;
int _opusStatus;
int _opusType;
int _opusOriginal;
int _opusJurisdiction;
int _opusIsEdit;
List<NewsOpus> _newsOpus;
OpusOpusInfoEntityUserInfo _userInfo;
List<OpusImgs> _opusImgs;
List<Tags> _tags;
OpusOpusInfoEntityData(
{int opusId,
int userId,
String opusTitle,
String opusIntroduce,
String opusTime,
int opusSatisfied,
int opusSee,
int opusFollow,
int opusCollection,
String opusImg,
int opusStatus,
int opusType,
int opusOriginal,
int opusJurisdiction,
int opusIsEdit,
List<NewsOpus> newsOpus,
OpusOpusInfoEntityUserInfo userInfo,
List<OpusImgs> opusImgs,
List<Tags> tags}) {
this._opusId = opusId;
this._userId = userId;
this._opusTitle = opusTitle;
this._opusIntroduce = opusIntroduce;
this._opusTime = opusTime;
this._opusSatisfied = opusSatisfied;
this._opusSee = opusSee;
this._opusFollow = opusFollow;
this._opusCollection = opusCollection;
this._opusImg = opusImg;
this._opusStatus = opusStatus;
this._opusType = opusType;
this._opusOriginal = opusOriginal;
this._opusJurisdiction = opusJurisdiction;
this._opusIsEdit = opusIsEdit;
this._newsOpus = newsOpus;
this._userInfo = userInfo;
this._opusImgs = opusImgs;
this._tags = tags;
}
int get opusId => _opusId;
set opusId(int opusId) => _opusId = opusId;
int get userId => _userId;
set userId(int userId) => _userId = userId;
String get opusTitle => _opusTitle;
set opusTitle(String opusTitle) => _opusTitle = opusTitle;
String get opusIntroduce => _opusIntroduce;
set opusIntroduce(String opusIntroduce) => _opusIntroduce = opusIntroduce;
String get opusTime => _opusTime;
set opusTime(String opusTime) => _opusTime = opusTime;
int get opusSatisfied => _opusSatisfied;
set opusSatisfied(int opusSatisfied) => _opusSatisfied = opusSatisfied;
int get opusSee => _opusSee;
set opusSee(int opusSee) => _opusSee = opusSee;
int get opusFollow => _opusFollow;
set opusFollow(int opusFollow) => _opusFollow = opusFollow;
int get opusCollection => _opusCollection;
set opusCollection(int opusCollection) => _opusCollection = opusCollection;
String get opusImg => _opusImg;
set opusImg(String opusImg) => _opusImg = opusImg;
int get opusStatus => _opusStatus;
set opusStatus(int opusStatus) => _opusStatus = opusStatus;
int get opusType => _opusType;
set opusType(int opusType) => _opusType = opusType;
int get opusOriginal => _opusOriginal;
set opusOriginal(int opusOriginal) => _opusOriginal = opusOriginal;
int get opusJurisdiction => _opusJurisdiction;
set opusJurisdiction(int opusJurisdiction) =>
_opusJurisdiction = opusJurisdiction;
int get opusIsEdit => _opusIsEdit;
set opusIsEdit(int opusIsEdit) => _opusIsEdit = opusIsEdit;
List<NewsOpus> get newsOpus => _newsOpus;
set newsOpus(List<NewsOpus> newsOpus) => _newsOpus = newsOpus;
OpusOpusInfoEntityUserInfo get userInfo => _userInfo;
set userInfo(OpusOpusInfoEntityUserInfo userInfo) => _userInfo = userInfo;
List<OpusImgs> get opusImgs => _opusImgs;
set opusImgs(List<OpusImgs> opusImgs) => _opusImgs = opusImgs;
List<Tags> get tags => _tags;
set tags(List<Tags> tags) => _tags = tags;
OpusOpusInfoEntityData.fromJson(Map<String, dynamic> json) {
_opusId = json['opus_id'];
_userId = json['user_id'];
_opusTitle = json['opus_title'];
_opusIntroduce = json['opus_introduce'];
_opusTime = json['opus_time'];
_opusSatisfied = json['opus_satisfied'];
_opusSee = json['opus_see'];
_opusFollow = json['opus_follow'];
_opusCollection = json['opus_collection'];
_opusImg = json['opus_img'];
_opusStatus = json['opus_status'];
_opusType = json['opus_type'];
_opusOriginal = json['opus_original'];
_opusJurisdiction = json['opus_jurisdiction'];
_opusIsEdit = json['opus_is_edit'];
if (json['news_opus'] != null) {
_newsOpus = new List<NewsOpus>();
json['news_opus'].forEach((v) {
_newsOpus.add(new NewsOpus.fromJson(v));
});
}
_userInfo = json['user_info'] != null
? new OpusOpusInfoEntityUserInfo.fromJson(json['user_info'])
: null;
if (json['opus_imgs'] != null) {
_opusImgs = new List<OpusImgs>();
json['opus_imgs'].forEach((v) {
_opusImgs.add(new OpusImgs.fromJson(v));
});
}
if (json['tags'] != null) {
_tags = new List<Tags>();
json['tags'].forEach((v) {
_tags.add(new Tags.fromJson(v));
});
}
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['opus_id'] = this._opusId;
data['user_id'] = this._userId;
data['opus_title'] = this._opusTitle;
data['opus_introduce'] = this._opusIntroduce;
data['opus_time'] = this._opusTime;
data['opus_satisfied'] = this._opusSatisfied;
data['opus_see'] = this._opusSee;
data['opus_follow'] = this._opusFollow;
data['opus_collection'] = this._opusCollection;
data['opus_img'] = this._opusImg;
data['opus_status'] = this._opusStatus;
data['opus_type'] = this._opusType;
data['opus_original'] = this._opusOriginal;
data['opus_jurisdiction'] = this._opusJurisdiction;
data['opus_is_edit'] = this._opusIsEdit;
if (this._newsOpus != null) {
data['news_opus'] = this._newsOpus.map((v) => v.toJson()).toList();
}
if (this._userInfo != null) {
data['user_info'] = this._userInfo.toJson();
}
if (this._opusImgs != null) {
data['opus_imgs'] = this._opusImgs.map((v) => v.toJson()).toList();
}
if (this._tags != null) {
data['tags'] = this._tags.map((v) => v.toJson()).toList();
}
return data;
}
}
class NewsOpus {
int _opusId;
int _userId;
String _opusTitle;
String _opusIntroduce;
String _opusTime;
int _opusSatisfied;
int _opusSee;
int _opusFollow;
int _opusCollection;
String _opusImg;
int _opusStatus;
int _opusType;
int _opusOriginal;
int _opusJurisdiction;
int _opusIsEdit;
NewsOpus(
{int opusId,
int userId,
String opusTitle,
String opusIntroduce,
String opusTime,
int opusSatisfied,
int opusSee,
int opusFollow,
int opusCollection,
String opusImg,
int opusStatus,
int opusType,
int opusOriginal,
int opusJurisdiction,
int opusIsEdit}) {
this._opusId = opusId;
this._userId = userId;
this._opusTitle = opusTitle;
this._opusIntroduce = opusIntroduce;
this._opusTime = opusTime;
this._opusSatisfied = opusSatisfied;
this._opusSee = opusSee;
this._opusFollow = opusFollow;
this._opusCollection = opusCollection;
this._opusImg = opusImg;
this._opusStatus = opusStatus;
this._opusType = opusType;
this._opusOriginal = opusOriginal;
this._opusJurisdiction = opusJurisdiction;
this._opusIsEdit = opusIsEdit;
}
int get opusId => _opusId;
set opusId(int opusId) => _opusId = opusId;
int get userId => _userId;
set userId(int userId) => _userId = userId;
String get opusTitle => _opusTitle;
set opusTitle(String opusTitle) => _opusTitle = opusTitle;
String get opusIntroduce => _opusIntroduce;
set opusIntroduce(String opusIntroduce) => _opusIntroduce = opusIntroduce;
String get opusTime => _opusTime;
set opusTime(String opusTime) => _opusTime = opusTime;
int get opusSatisfied => _opusSatisfied;
set opusSatisfied(int opusSatisfied) => _opusSatisfied = opusSatisfied;
int get opusSee => _opusSee;
set opusSee(int opusSee) => _opusSee = opusSee;
int get opusFollow => _opusFollow;
set opusFollow(int opusFollow) => _opusFollow = opusFollow;
int get opusCollection => _opusCollection;
set opusCollection(int opusCollection) => _opusCollection = opusCollection;
String get opusImg => _opusImg;
set opusImg(String opusImg) => _opusImg = opusImg;
int get opusStatus => _opusStatus;
set opusStatus(int opusStatus) => _opusStatus = opusStatus;
int get opusType => _opusType;
set opusType(int opusType) => _opusType = opusType;
int get opusOriginal => _opusOriginal;
set opusOriginal(int opusOriginal) => _opusOriginal = opusOriginal;
int get opusJurisdiction => _opusJurisdiction;
set opusJurisdiction(int opusJurisdiction) =>
_opusJurisdiction = opusJurisdiction;
int get opusIsEdit => _opusIsEdit;
set opusIsEdit(int opusIsEdit) => _opusIsEdit = opusIsEdit;
NewsOpus.fromJson(Map<String, dynamic> json) {
_opusId = json['opus_id'];
_userId = json['user_id'];
_opusTitle = json['opus_title'];
_opusIntroduce = json['opus_introduce'];
_opusTime = json['opus_time'];
_opusSatisfied = json['opus_satisfied'];
_opusSee = json['opus_see'];
_opusFollow = json['opus_follow'];
_opusCollection = json['opus_collection'];
_opusImg = json['opus_img'];
_opusStatus = json['opus_status'];
_opusType = json['opus_type'];
_opusOriginal = json['opus_original'];
_opusJurisdiction = json['opus_jurisdiction'];
_opusIsEdit = json['opus_is_edit'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['opus_id'] = this._opusId;
data['user_id'] = this._userId;
data['opus_title'] = this._opusTitle;
data['opus_introduce'] = this._opusIntroduce;
data['opus_time'] = this._opusTime;
data['opus_satisfied'] = this._opusSatisfied;
data['opus_see'] = this._opusSee;
data['opus_follow'] = this._opusFollow;
data['opus_collection'] = this._opusCollection;
data['opus_img'] = this._opusImg;
data['opus_status'] = this._opusStatus;
data['opus_type'] = this._opusType;
data['opus_original'] = this._opusOriginal;
data['opus_jurisdiction'] = this._opusJurisdiction;
data['opus_is_edit'] = this._opusIsEdit;
return data;
}
}
class OpusOpusInfoEntityUserInfo {
int _userId;
String _userPhone;
String _userRealName;
String _userIdCard;
String _userEmail;
String _userBankCard;
String _userSex;
String _userWork;
String _userHeadImg;
String _userNickname;
String _userUid;
String _userRegTime;
String _userBirthday;
String _userConstellation;
String _userAutograph;
OpusOpusInfoEntityUserInfo(
{int userId,
String userPhone,
String userRealName,
String userIdCard,
String userEmail,
String userBankCard,
String userSex,
String userWork,
String userHeadImg,
String userNickname,
String userUid,
String userRegTime,
Null userBirthday,
Null userConstellation,
String userAutograph}) {
this._userId = userId;
this._userPhone = userPhone;
this._userRealName = userRealName;
this._userIdCard = userIdCard;
this._userEmail = userEmail;
this._userBankCard = userBankCard;
this._userSex = userSex;
this._userWork = userWork;
this._userHeadImg = userHeadImg;
this._userNickname = userNickname;
this._userUid = userUid;
this._userRegTime = userRegTime;
this._userBirthday = userBirthday;
this._userConstellation = userConstellation;
this._userAutograph = userAutograph;
}
int get userId => _userId;
set userId(int userId) => _userId = userId;
String get userPhone => _userPhone;
set userPhone(String userPhone) => _userPhone = userPhone;
String get userRealName => _userRealName;
set userRealName(String userRealName) => _userRealName = userRealName;
String get userIdCard => _userIdCard;
set userIdCard(String userIdCard) => _userIdCard = userIdCard;
String get userEmail => _userEmail;
set userEmail(String userEmail) => _userEmail = userEmail;
String get userBankCard => _userBankCard;
set userBankCard(String userBankCard) => _userBankCard = userBankCard;
String get userSex => _userSex;
set userSex(String userSex) => _userSex = userSex;
String get userWork => _userWork;
set userWork(String userWork) => _userWork = userWork;
String get userHeadImg => _userHeadImg;
set userHeadImg(String userHeadImg) => _userHeadImg = userHeadImg;
String get userNickname => _userNickname;
set userNickname(String userNickname) => _userNickname = userNickname;
String get userUid => _userUid;
set userUid(String userUid) => _userUid = userUid;
String get userRegTime => _userRegTime;
set userRegTime(String userRegTime) => _userRegTime = userRegTime;
Null get userBirthday => _userBirthday;
set userBirthday(Null userBirthday) => _userBirthday = userBirthday;
Null get userConstellation => _userConstellation;
set userConstellation(Null userConstellation) =>
_userConstellation = userConstellation;
String get userAutograph => _userAutograph;
set userAutograph(String userAutograph) => _userAutograph = userAutograph;
OpusOpusInfoEntityUserInfo.fromJson(Map<String, dynamic> json) {
_userId = json['user_id'];
_userPhone = json['user_phone'];
_userRealName = json['user_real_name'];
_userIdCard = json['user_id_card'];
_userEmail = json['user_email'];
_userBankCard = json['user_bank_card'];
_userSex = json['user_sex'];
_userWork = json['user_work'];
_userHeadImg = json['user_head_img'];
_userNickname = json['user_nickname'];
_userUid = json['user_uid'];
_userRegTime = json['user_reg_time'];
_userBirthday = json['user_birthday'];
_userConstellation = json['user_constellation'];
_userAutograph = json['user_autograph'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['user_id'] = this._userId;
data['user_phone'] = this._userPhone;
data['user_real_name'] = this._userRealName;
data['user_id_card'] = this._userIdCard;
data['user_email'] = this._userEmail;
data['user_bank_card'] = this._userBankCard;
data['user_sex'] = this._userSex;
data['user_work'] = this._userWork;
data['user_head_img'] = this._userHeadImg;
data['user_nickname'] = this._userNickname;
data['user_uid'] = this._userUid;
data['user_reg_time'] = this._userRegTime;
data['user_birthday'] = this._userBirthday;
data['user_constellation'] = this._userConstellation;
data['user_autograph'] = this._userAutograph;
return data;
}
}
class OpusImgs {
int _opusId;
String _imgUrl;
int _userId;
int _imgId;
int _imgWidth;
int _imgHeight;
OpusImgs(
{int opusId,
String imgUrl,
int userId,
int imgId,
int imgWidth,
int imgHeight}) {
this._opusId = opusId;
this._imgUrl = imgUrl;
this._userId = userId;
this._imgId = imgId;
this._imgWidth = _imgWidth;
this._imgHeight = _imgHeight;
}
int get opusId => _opusId;
set opusId(int opusId) => _opusId = opusId;
String get imgUrl => _imgUrl;
set imgUrl(String imgUrl) => _imgUrl = imgUrl;
int get userId => _userId;
set userId(int userId) => _userId = userId;
int get imgId => _imgId;
set imgId(int imgId) => _imgId = imgId;
int get imgWidth => _imgWidth;
set imgWidth(int imgWidth) => _imgWidth = imgWidth;
int get imgHeight => _imgHeight;
set imgHeight(int imgHeight) => _imgHeight = imgHeight;
OpusImgs.fromJson(Map<String, dynamic> json) {
_opusId = json['opus_id'];
_imgUrl = json['img_url'];
_userId = json['user_id'];
_imgId = json['img_id'];
_imgWidth = json['img_width'];
_imgHeight = json['img_height'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['opus_id'] = this._opusId;
data['img_url'] = this._imgUrl;
data['user_id'] = this._userId;
data['img_id'] = this._imgId;
return data;
}
}
class Tags {
int _tagsId;
int _opusId;
String _tagsTitle;
int _tagsRecommend;
int _userId;
Tags(
{int tagsId,
int opusId,
String tagsTitle,
int tagsRecommend,
int userId}) {
this._tagsId = tagsId;
this._opusId = opusId;
this._tagsTitle = tagsTitle;
this._tagsRecommend = tagsRecommend;
this._userId = userId;
}
int get tagsId => _tagsId;
set tagsId(int tagsId) => _tagsId = tagsId;
int get opusId => _opusId;
set opusId(int opusId) => _opusId = opusId;
String get tagsTitle => _tagsTitle;
set tagsTitle(String tagsTitle) => _tagsTitle = tagsTitle;
int get tagsRecommend => _tagsRecommend;
set tagsRecommend(int tagsRecommend) => _tagsRecommend = tagsRecommend;
int get userId => _userId;
set userId(int userId) => _userId = userId;
Tags.fromJson(Map<String, dynamic> json) {
_tagsId = json['tags_id'];
_opusId = json['opus_id'];
_tagsTitle = json['tags_title'];
_tagsRecommend = json['tags_recommend'];
_userId = json['user_id'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['tags_id'] = this._tagsId;
data['opus_id'] = this._opusId;
data['tags_title'] = this._tagsTitle;
data['tags_recommend'] = this._tagsRecommend;
data['user_id'] = this._userId;
return data;
}
}

View File

@@ -0,0 +1,228 @@
class OpusRankingEntityList {
int _code;
String _message;
OpusRankingEntityData _data;
OpusRankingEntityList({int code, Null message, OpusRankingEntityData data}) {
this._code = code;
this._message = message;
this._data = data;
}
int get code => _code;
set code(int code) => _code = code;
Null get message => _message;
set message(Null message) => _message = message;
OpusRankingEntityData get data => _data;
set data(OpusRankingEntityData data) => _data = data;
OpusRankingEntityList.fromJson(Map<String, dynamic> json) {
_code = json['code'];
_message = json['message'];
_data = json['data'] != null
? new OpusRankingEntityData.fromJson(json['data'])
: null;
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['code'] = this._code;
data['message'] = this._message;
if (this._data != null) {
data['data'] = this._data.toJson();
}
return data;
}
}
class OpusRankingEntityData {
int _nextPage;
List<OpusRankingEntity> _result;
int _totalPage;
int _currentPage;
OpusRankingEntityData(
{int nextPage,
List<OpusRankingEntity> result,
int totalPage,
int currentPage}) {
this._nextPage = nextPage;
this._result = result;
this._totalPage = totalPage;
this._currentPage = currentPage;
}
int get nextPage => _nextPage;
set nextPage(int nextPage) => _nextPage = nextPage;
List<OpusRankingEntity> get result => _result;
set result(List<OpusRankingEntity> result) => _result = result;
int get totalPage => _totalPage;
set totalPage(int totalPage) => _totalPage = totalPage;
int get currentPage => _currentPage;
set currentPage(int currentPage) => _currentPage = currentPage;
OpusRankingEntityData.fromJson(Map<String, dynamic> json) {
_nextPage = json['next_page'];
if (json['result'] != null) {
_result = new List<OpusRankingEntity>();
json['result'].forEach((v) {
_result.add(new OpusRankingEntity.fromJson(v));
});
}
_totalPage = json['total_page'];
_currentPage = json['current_page'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['next_page'] = this._nextPage;
if (this._result != null) {
data['result'] = this._result.map((v) => v.toJson()).toList();
}
data['total_page'] = this._totalPage;
data['current_page'] = this._currentPage;
return data;
}
}
class OpusRankingEntity {
int _opusId;
int _userId;
String _opusTitle;
String _opusIntroduce;
String _opusTime;
int _opusSatisfied;
int _opusSee;
int _opusFollow;
int _opusCollection;
String _opusImg;
int _opusStatus;
int _opusType;
int _opusOriginal;
int _opusJurisdiction;
int _opusIsEdit;
String _userHeadImg;
String _userNickname;
String _userAutograph;
OpusRankingEntity(
{int opusId,
int userId,
String opusTitle,
String opusIntroduce,
String opusTime,
int opusSatisfied,
int opusSee,
int opusFollow,
int opusCollection,
String opusImg,
int opusStatus,
int opusType,
int opusOriginal,
int opusJurisdiction,
int opusIsEdit,
String userHeadImg,
String userNickname,
String userAutograph}) {
this._opusId = opusId;
this._userId = userId;
this._opusTitle = opusTitle;
this._opusIntroduce = opusIntroduce;
this._opusTime = opusTime;
this._opusSatisfied = opusSatisfied;
this._opusSee = opusSee;
this._opusFollow = opusFollow;
this._opusCollection = opusCollection;
this._opusImg = opusImg;
this._opusStatus = opusStatus;
this._opusType = opusType;
this._opusOriginal = opusOriginal;
this._opusJurisdiction = opusJurisdiction;
this._opusIsEdit = opusIsEdit;
this._userHeadImg = userHeadImg;
this._userNickname = userNickname;
this._userAutograph = userAutograph;
}
int get opusId => _opusId;
set opusId(int opusId) => _opusId = opusId;
int get userId => _userId;
set userId(int userId) => _userId = userId;
String get opusTitle => _opusTitle;
set opusTitle(String opusTitle) => _opusTitle = opusTitle;
String get opusIntroduce => _opusIntroduce;
set opusIntroduce(String opusIntroduce) => _opusIntroduce = opusIntroduce;
String get opusTime => _opusTime;
set opusTime(String opusTime) => _opusTime = opusTime;
int get opusSatisfied => _opusSatisfied;
set opusSatisfied(int opusSatisfied) => _opusSatisfied = opusSatisfied;
int get opusSee => _opusSee;
set opusSee(int opusSee) => _opusSee = opusSee;
int get opusFollow => _opusFollow;
set opusFollow(int opusFollow) => _opusFollow = opusFollow;
int get opusCollection => _opusCollection;
set opusCollection(int opusCollection) => _opusCollection = opusCollection;
String get opusImg => _opusImg;
set opusImg(String opusImg) => _opusImg = opusImg;
int get opusStatus => _opusStatus;
set opusStatus(int opusStatus) => _opusStatus = opusStatus;
int get opusType => _opusType;
set opusType(int opusType) => _opusType = opusType;
int get opusOriginal => _opusOriginal;
set opusOriginal(int opusOriginal) => _opusOriginal = opusOriginal;
int get opusJurisdiction => _opusJurisdiction;
set opusJurisdiction(int opusJurisdiction) =>
_opusJurisdiction = opusJurisdiction;
int get opusIsEdit => _opusIsEdit;
set opusIsEdit(int opusIsEdit) => _opusIsEdit = opusIsEdit;
String get userHeadImg => _userHeadImg;
set userHeadImg(String userHeadImg) => _userHeadImg = userHeadImg;
String get userNickname => _userNickname;
set userNickname(String userNickname) => _userNickname = userNickname;
String get userAutograph => _userAutograph;
set userAutograph(String userAutograph) => _userAutograph = userAutograph;
OpusRankingEntity.fromJson(Map<String, dynamic> json) {
_opusId = json['opus_id'];
_userId = json['user_id'];
_opusTitle = json['opus_title'];
_opusIntroduce = json['opus_introduce'];
_opusTime = json['opus_time'];
_opusSatisfied = json['opus_satisfied'];
_opusSee = json['opus_see'];
_opusFollow = json['opus_follow'];
_opusCollection = json['opus_collection'];
_opusImg = json['opus_img'];
_opusStatus = json['opus_status'];
_opusType = json['opus_type'];
_opusOriginal = json['opus_original'];
_opusJurisdiction = json['opus_jurisdiction'];
_opusIsEdit = json['opus_is_edit'];
_userHeadImg = json['user_head_img'];
_userNickname = json['user_nickname'];
_userAutograph = json['user_autograph'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['opus_id'] = this._opusId;
data['user_id'] = this._userId;
data['opus_title'] = this._opusTitle;
data['opus_introduce'] = this._opusIntroduce;
data['opus_time'] = this._opusTime;
data['opus_satisfied'] = this._opusSatisfied;
data['opus_see'] = this._opusSee;
data['opus_follow'] = this._opusFollow;
data['opus_collection'] = this._opusCollection;
data['opus_img'] = this._opusImg;
data['opus_status'] = this._opusStatus;
data['opus_type'] = this._opusType;
data['opus_original'] = this._opusOriginal;
data['opus_jurisdiction'] = this._opusJurisdiction;
data['opus_is_edit'] = this._opusIsEdit;
data['user_head_img'] = this._userHeadImg;
data['user_nickname'] = this._userNickname;
data['user_autograph'] = this._userAutograph;
return data;
}
}

View File

@@ -0,0 +1,178 @@
class OpusRecommendList {
int _code;
OpusRecommendData _data;
String _message;
OpusRecommendList({int code, OpusRecommendData data, String message}) {
this._code = code;
this._data = data;
this._message = message;
}
int get code => _code;
set code(int code) => _code = code;
OpusRecommendData get data => _data;
set data(OpusRecommendData data) => _data = data;
String get message => _message;
set message(String message) => _message = message;
OpusRecommendList.fromJson(Map<String, dynamic> json) {
_code = json['code'];
_data = json['data'] != null
? new OpusRecommendData.fromJson(json['data'])
: null;
_message = json['message'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['code'] = this._code;
if (this._data != null) {
data['data'] = this._data.toJson();
}
data['message'] = this._message;
return data;
}
}
class OpusRecommendData {
int _currentPage;
int _nextPage;
List<OpusRecommendResult> _result;
int _totalPage;
OpusRecommendData(
{int currentPage,
int nextPage,
List<OpusRecommendResult> result,
int totalPage}) {
this._currentPage = currentPage;
this._nextPage = nextPage;
this._result = result;
this._totalPage = totalPage;
}
int get currentPage => _currentPage;
set currentPage(int currentPage) => _currentPage = currentPage;
int get nextPage => _nextPage;
set nextPage(int nextPage) => _nextPage = nextPage;
List<OpusRecommendResult> get result => _result;
set result(List<OpusRecommendResult> result) => _result = result;
int get totalPage => _totalPage;
set totalPage(int totalPage) => _totalPage = totalPage;
OpusRecommendData.fromJson(Map<String, dynamic> json) {
_currentPage = json['current_page'];
_nextPage = json['next_page'];
if (json['result'] != null) {
_result = new List<OpusRecommendResult>();
json['result'].forEach((v) {
_result.add(new OpusRecommendResult.fromJson(v));
});
}
_totalPage = json['total_page'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['current_page'] = this._currentPage;
data['next_page'] = this._nextPage;
if (this._result != null) {
data['result'] = this._result.map((v) => v.toJson()).toList();
}
data['total_page'] = this._totalPage;
return data;
}
}
class OpusRecommendResult {
int _opusFollow;
int _opusId;
String _opusImg;
String _opusIntroduce;
int _opusSatisfied;
int _opusSee;
int _opusStatus;
String _opusTime;
String _opusTitle;
int _opusType;
int _userId;
OpusRecommendResult(
{int opusFollow,
int opusId,
String opusImg,
String opusIntroduce,
int opusSatisfied,
int opusSee,
int opusStatus,
String opusTime,
String opusTitle,
int opusType,
int userId}) {
this._opusFollow = opusFollow;
this._opusId = opusId;
this._opusImg = opusImg;
this._opusIntroduce = opusIntroduce;
this._opusSatisfied = opusSatisfied;
this._opusSee = opusSee;
this._opusStatus = opusStatus;
this._opusTime = opusTime;
this._opusTitle = opusTitle;
this._opusType = opusType;
this._userId = userId;
}
int get opusFollow => _opusFollow;
set opusFollow(int opusFollow) => _opusFollow = opusFollow;
int get opusId => _opusId;
set opusId(int opusId) => _opusId = opusId;
String get opusImg => _opusImg;
set opusImg(String opusImg) => _opusImg = opusImg;
String get opusIntroduce => _opusIntroduce;
set opusIntroduce(String opusIntroduce) => _opusIntroduce = opusIntroduce;
int get opusSatisfied => _opusSatisfied;
set opusSatisfied(int opusSatisfied) => _opusSatisfied = opusSatisfied;
int get opusSee => _opusSee;
set opusSee(int opusSee) => _opusSee = opusSee;
int get opusStatus => _opusStatus;
set opusStatus(int opusStatus) => _opusStatus = opusStatus;
String get opusTime => _opusTime;
set opusTime(String opusTime) => _opusTime = opusTime;
String get opusTitle => _opusTitle;
set opusTitle(String opusTitle) => _opusTitle = opusTitle;
int get opusType => _opusType;
set opusType(int opusType) => _opusType = opusType;
int get userId => _userId;
set userId(int userId) => _userId = userId;
OpusRecommendResult.fromJson(Map<String, dynamic> json) {
_opusFollow = json['opus_follow'];
_opusId = json['opus_id'];
_opusImg = json['opus_img'];
_opusIntroduce = json['opus_introduce'];
_opusSatisfied = json['opus_satisfied'];
_opusSee = json['opus_see'];
_opusStatus = json['opus_status'];
_opusTime = json['opus_time'];
_opusTitle = json['opus_title'];
_opusType = json['opus_type'];
_userId = json['user_id'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['opus_follow'] = this._opusFollow;
data['opus_id'] = this._opusId;
data['opus_img'] = this._opusImg;
data['opus_introduce'] = this._opusIntroduce;
data['opus_satisfied'] = this._opusSatisfied;
data['opus_see'] = this._opusSee;
data['opus_status'] = this._opusStatus;
data['opus_time'] = this._opusTime;
data['opus_title'] = this._opusTitle;
data['opus_type'] = this._opusType;
data['user_id'] = this._userId;
return data;
}
}

View File

@@ -0,0 +1,208 @@
class OpusSearchTagEntityList {
int _code;
String _message;
OpusSearchTagEntityData _data;
OpusSearchTagEntityList(
{int code, Null message, OpusSearchTagEntityData data}) {
this._code = code;
this._message = message;
this._data = data;
}
int get code => _code;
set code(int code) => _code = code;
Null get message => _message;
set message(Null message) => _message = message;
OpusSearchTagEntityData get data => _data;
set data(OpusSearchTagEntityData data) => _data = data;
OpusSearchTagEntityList.fromJson(Map<String, dynamic> json) {
_code = json['code'];
_message = json['message'];
_data = json['data'] != null
? new OpusSearchTagEntityData.fromJson(json['data'])
: null;
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['code'] = this._code;
data['message'] = this._message;
if (this._data != null) {
data['data'] = this._data.toJson();
}
return data;
}
}
class OpusSearchTagEntityData {
int _nextPage;
List<OpusSearchTagEntityResult> _result;
List<String> _keywords;
int _totalPage;
int _currentPage;
OpusSearchTagEntityData(
{int nextPage,
List<OpusSearchTagEntityResult> result,
List<String> keywords,
int totalPage,
int currentPage}) {
this._nextPage = nextPage;
this._result = result;
this._keywords = keywords;
this._totalPage = totalPage;
this._currentPage = currentPage;
}
int get nextPage => _nextPage;
set nextPage(int nextPage) => _nextPage = nextPage;
List<OpusSearchTagEntityResult> get result => _result;
set result(List<OpusSearchTagEntityResult> result) => _result = result;
List<String> get keywords => _keywords;
set keywords(List<String> keywords) => _keywords = keywords;
int get totalPage => _totalPage;
set totalPage(int totalPage) => _totalPage = totalPage;
int get currentPage => _currentPage;
set currentPage(int currentPage) => _currentPage = currentPage;
OpusSearchTagEntityData.fromJson(Map<String, dynamic> json) {
_nextPage = json['next_page'];
if (json['result'] != null) {
_result = new List<OpusSearchTagEntityResult>();
json['result'].forEach((v) {
_result.add(new OpusSearchTagEntityResult.fromJson(v));
});
}
_keywords = json['keywords'].cast<String>();
_totalPage = json['total_page'];
_currentPage = json['current_page'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['next_page'] = this._nextPage;
if (this._result != null) {
data['result'] = this._result.map((v) => v.toJson()).toList();
}
data['keywords'] = this._keywords;
data['total_page'] = this._totalPage;
data['current_page'] = this._currentPage;
return data;
}
}
class OpusSearchTagEntityResult {
int _opusId;
int _userId;
String _opusTitle;
String _opusIntroduce;
String _opusTime;
int _opusSatisfied;
int _opusSee;
int _opusFollow;
int _opusCollection;
String _opusImg;
int _opusStatus;
int _opusType;
int _opusOriginal;
int _opusJurisdiction;
OpusSearchTagEntityResult(
{int opusId,
int userId,
String opusTitle,
String opusIntroduce,
String opusTime,
int opusSatisfied,
int opusSee,
int opusFollow,
int opusCollection,
String opusImg,
int opusStatus,
int opusType,
int opusOriginal,
int opusJurisdiction}) {
this._opusId = opusId;
this._userId = userId;
this._opusTitle = opusTitle;
this._opusIntroduce = opusIntroduce;
this._opusTime = opusTime;
this._opusSatisfied = opusSatisfied;
this._opusSee = opusSee;
this._opusFollow = opusFollow;
this._opusCollection = opusCollection;
this._opusImg = opusImg;
this._opusStatus = opusStatus;
this._opusType = opusType;
this._opusOriginal = opusOriginal;
this._opusJurisdiction = opusJurisdiction;
}
int get opusId => _opusId;
set opusId(int opusId) => _opusId = opusId;
int get userId => _userId;
set userId(int userId) => _userId = userId;
String get opusTitle => _opusTitle;
set opusTitle(String opusTitle) => _opusTitle = opusTitle;
String get opusIntroduce => _opusIntroduce;
set opusIntroduce(String opusIntroduce) => _opusIntroduce = opusIntroduce;
String get opusTime => _opusTime;
set opusTime(String opusTime) => _opusTime = opusTime;
int get opusSatisfied => _opusSatisfied;
set opusSatisfied(int opusSatisfied) => _opusSatisfied = opusSatisfied;
int get opusSee => _opusSee;
set opusSee(int opusSee) => _opusSee = opusSee;
int get opusFollow => _opusFollow;
set opusFollow(int opusFollow) => _opusFollow = opusFollow;
int get opusCollection => _opusCollection;
set opusCollection(int opusCollection) => _opusCollection = opusCollection;
String get opusImg => _opusImg;
set opusImg(String opusImg) => _opusImg = opusImg;
int get opusStatus => _opusStatus;
set opusStatus(int opusStatus) => _opusStatus = opusStatus;
int get opusType => _opusType;
set opusType(int opusType) => _opusType = opusType;
int get opusOriginal => _opusOriginal;
set opusOriginal(int opusOriginal) => _opusOriginal = opusOriginal;
int get opusJurisdiction => _opusJurisdiction;
set opusJurisdiction(int opusJurisdiction) =>
_opusJurisdiction = opusJurisdiction;
OpusSearchTagEntityResult.fromJson(Map<String, dynamic> json) {
_opusId = json['opus_id'];
_userId = json['user_id'];
_opusTitle = json['opus_title'];
_opusIntroduce = json['opus_introduce'];
_opusTime = json['opus_time'];
_opusSatisfied = json['opus_satisfied'];
_opusSee = json['opus_see'];
_opusFollow = json['opus_follow'];
_opusCollection = json['opus_collection'];
_opusImg = json['opus_img'];
_opusStatus = json['opus_status'];
_opusType = json['opus_type'];
_opusOriginal = json['opus_original'];
_opusJurisdiction = json['opus_jurisdiction'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['opus_id'] = this._opusId;
data['user_id'] = this._userId;
data['opus_title'] = this._opusTitle;
data['opus_introduce'] = this._opusIntroduce;
data['opus_time'] = this._opusTime;
data['opus_satisfied'] = this._opusSatisfied;
data['opus_see'] = this._opusSee;
data['opus_follow'] = this._opusFollow;
data['opus_collection'] = this._opusCollection;
data['opus_img'] = this._opusImg;
data['opus_status'] = this._opusStatus;
data['opus_type'] = this._opusType;
data['opus_original'] = this._opusOriginal;
data['opus_jurisdiction'] = this._opusJurisdiction;
return data;
}
}

View File

@@ -0,0 +1,215 @@
class OpusSearchUserEntityList {
int _code;
String _message;
OpusSearchUserEntityData _data;
OpusSearchUserEntityList(
{int code, Null message, OpusSearchUserEntityData data}) {
this._code = code;
this._message = message;
this._data = data;
}
int get code => _code;
set code(int code) => _code = code;
Null get message => _message;
set message(Null message) => _message = message;
OpusSearchUserEntityData get data => _data;
set data(OpusSearchUserEntityData data) => _data = data;
OpusSearchUserEntityList.fromJson(Map<String, dynamic> json) {
_code = json['code'];
_message = json['message'];
_data = json['data'] != null
? new OpusSearchUserEntityData.fromJson(json['data'])
: null;
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['code'] = this._code;
data['message'] = this._message;
if (this._data != null) {
data['data'] = this._data.toJson();
}
return data;
}
}
class OpusSearchUserEntityData {
int _nextPage;
List<OpusSearchUserEntityResult> _result;
List<String> _keywords;
int _totalPage;
int _currentPage;
OpusSearchUserEntityData(
{int nextPage,
List<OpusSearchUserEntityResult> result,
List<String> keywords,
int totalPage,
int currentPage}) {
this._nextPage = nextPage;
this._result = result;
this._keywords = keywords;
this._totalPage = totalPage;
this._currentPage = currentPage;
}
int get nextPage => _nextPage;
set nextPage(int nextPage) => _nextPage = nextPage;
List<OpusSearchUserEntityResult> get result => _result;
set result(List<OpusSearchUserEntityResult> result) => _result = result;
List<String> get keywords => _keywords;
set keywords(List<String> keywords) => _keywords = keywords;
int get totalPage => _totalPage;
set totalPage(int totalPage) => _totalPage = totalPage;
int get currentPage => _currentPage;
set currentPage(int currentPage) => _currentPage = currentPage;
OpusSearchUserEntityData.fromJson(Map<String, dynamic> json) {
_nextPage = json['next_page'];
if (json['result'] != null) {
_result = new List<OpusSearchUserEntityResult>();
json['result'].forEach((v) {
_result.add(new OpusSearchUserEntityResult.fromJson(v));
});
}
_keywords = json['keywords'].cast<String>();
_totalPage = json['total_page'];
_currentPage = json['current_page'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['next_page'] = this._nextPage;
if (this._result != null) {
data['result'] = this._result.map((v) => v.toJson()).toList();
}
data['keywords'] = this._keywords;
data['total_page'] = this._totalPage;
data['current_page'] = this._currentPage;
return data;
}
}
class OpusSearchUserEntityResult {
int _userId;
String _userPhone;
String _userRealName;
String _userIdCard;
String _userEmail;
String _userBankCard;
String _userSex;
String _userWork;
String _userHeadImg;
String _userNickname;
String _userUid;
String _userRegTime;
String _userBirthday;
String _userConstellation;
String _userAutograph;
OpusSearchUserEntityResult(
{int userId,
String userPhone,
String userRealName,
String userIdCard,
String userEmail,
String userBankCard,
String userSex,
String userWork,
String userHeadImg,
String userNickname,
String userUid,
String userRegTime,
String userBirthday,
String userConstellation,
String userAutograph}) {
this._userId = userId;
this._userPhone = userPhone;
this._userRealName = userRealName;
this._userIdCard = userIdCard;
this._userEmail = userEmail;
this._userBankCard = userBankCard;
this._userSex = userSex;
this._userWork = userWork;
this._userHeadImg = userHeadImg;
this._userNickname = userNickname;
this._userUid = userUid;
this._userRegTime = userRegTime;
this._userBirthday = userBirthday;
this._userConstellation = userConstellation;
this._userAutograph = userAutograph;
}
int get userId => _userId;
set userId(int userId) => _userId = userId;
String get userPhone => _userPhone;
set userPhone(String userPhone) => _userPhone = userPhone;
String get userRealName => _userRealName;
set userRealName(String userRealName) => _userRealName = userRealName;
String get userIdCard => _userIdCard;
set userIdCard(String userIdCard) => _userIdCard = userIdCard;
String get userEmail => _userEmail;
set userEmail(String userEmail) => _userEmail = userEmail;
String get userBankCard => _userBankCard;
set userBankCard(String userBankCard) => _userBankCard = userBankCard;
String get userSex => _userSex;
set userSex(String userSex) => _userSex = userSex;
String get userWork => _userWork;
set userWork(String userWork) => _userWork = userWork;
String get userHeadImg => _userHeadImg;
set userHeadImg(String userHeadImg) => _userHeadImg = userHeadImg;
String get userNickname => _userNickname;
set userNickname(String userNickname) => _userNickname = userNickname;
String get userUid => _userUid;
set userUid(String userUid) => _userUid = userUid;
String get userRegTime => _userRegTime;
set userRegTime(String userRegTime) => _userRegTime = userRegTime;
String get userBirthday => _userBirthday;
set userBirthday(String userBirthday) => _userBirthday = userBirthday;
String get userConstellation => _userConstellation;
set userConstellation(String userConstellation) =>
_userConstellation = userConstellation;
String get userAutograph => _userAutograph;
set userAutograph(String userAutograph) => _userAutograph = userAutograph;
OpusSearchUserEntityResult.fromJson(Map<String, dynamic> json) {
_userId = json['user_id'];
_userPhone = json['user_phone'];
_userRealName = json['user_real_name'];
_userIdCard = json['user_id_card'];
_userEmail = json['user_email'];
_userBankCard = json['user_bank_card'];
_userSex = json['user_sex'];
_userWork = json['user_work'];
_userHeadImg = json['user_head_img'];
_userNickname = json['user_nickname'];
_userUid = json['user_uid'];
_userRegTime = json['user_reg_time'];
_userBirthday = json['user_birthday'];
_userConstellation = json['user_constellation'];
_userAutograph = json['user_autograph'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['user_id'] = this._userId;
data['user_phone'] = this._userPhone;
data['user_real_name'] = this._userRealName;
data['user_id_card'] = this._userIdCard;
data['user_email'] = this._userEmail;
data['user_bank_card'] = this._userBankCard;
data['user_sex'] = this._userSex;
data['user_work'] = this._userWork;
data['user_head_img'] = this._userHeadImg;
data['user_nickname'] = this._userNickname;
data['user_uid'] = this._userUid;
data['user_reg_time'] = this._userRegTime;
data['user_birthday'] = this._userBirthday;
data['user_constellation'] = this._userConstellation;
data['user_autograph'] = this._userAutograph;
return data;
}
}

View File

@@ -0,0 +1,89 @@
class OpusTagEntityList {
int _code;
List<OpusTagEntityData> _data;
String _message;
OpusTagEntityList({int code, List<OpusTagEntityData> data, String message}) {
this._code = code;
this._data = data;
this._message = message;
}
int get code => _code;
set code(int code) => _code = code;
List<OpusTagEntityData> get data => _data;
set data(List<OpusTagEntityData> data) => _data = data;
String get message => _message;
set message(String message) => _message = message;
OpusTagEntityList.fromJson(Map<String, dynamic> json) {
_code = json['code'];
if (json['data'] != null) {
_data = new List<OpusTagEntityData>();
json['data'].forEach((v) {
_data.add(new OpusTagEntityData.fromJson(v));
});
}
_message = json['message'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['code'] = this._code;
if (this._data != null) {
data['data'] = this._data.map((v) => v.toJson()).toList();
}
data['message'] = this._message;
return data;
}
}
class OpusTagEntityData {
int _opusId;
int _tagsId;
int _tagsRecommend;
String _tagsTitle;
int _userId;
OpusTagEntityData(
{int opusId,
int tagsId,
int tagsRecommend,
String tagsTitle,
int userId}) {
this._opusId = opusId;
this._tagsId = tagsId;
this._tagsRecommend = tagsRecommend;
this._tagsTitle = tagsTitle;
this._userId = userId;
}
int get opusId => _opusId;
set opusId(int opusId) => _opusId = opusId;
int get tagsId => _tagsId;
set tagsId(int tagsId) => _tagsId = tagsId;
int get tagsRecommend => _tagsRecommend;
set tagsRecommend(int tagsRecommend) => _tagsRecommend = tagsRecommend;
String get tagsTitle => _tagsTitle;
set tagsTitle(String tagsTitle) => _tagsTitle = tagsTitle;
int get userId => _userId;
set userId(int userId) => _userId = userId;
OpusTagEntityData.fromJson(Map<String, dynamic> json) {
_opusId = json['opus_id'];
_tagsId = json['tags_id'];
_tagsRecommend = json['tags_recommend'];
_tagsTitle = json['tags_title'];
_userId = json['user_id'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['opus_id'] = this._opusId;
data['tags_id'] = this._tagsId;
data['tags_recommend'] = this._tagsRecommend;
data['tags_title'] = this._tagsTitle;
data['user_id'] = this._userId;
return data;
}
}

View File

@@ -0,0 +1,20 @@
import 'package:flutter/cupertino.dart';
class PageEntity {
int _page = 1;
int _count = 15;
bool _isLoad = false;
set page(int page) => _page = page;
int get page => _page;
set count(int count) => _count = count;
int get count => _count;
set isLoad(bool isLoad) => _isLoad = isLoad;
bool get isLoad => _isLoad;
// PageEntity({int page = 0, int count = 15, bool isLoad}) {
// this._page = page;
// this._count = count;
// this._isLoad = isLoad;
// }
}

View File

@@ -0,0 +1,13 @@
class WorksInfoProps {
int _id;
int get getId => _id;
set setId(int id) => _id = id;
WorksInfoProps(this._id);
}
class KeywordProps {
String _keyword;
String get getkeyword => _keyword;
set setKeyword(String keyword) => _keyword = keyword;
KeywordProps(this._keyword);
}

View File

@@ -0,0 +1,186 @@
class RegList {
int _code;
RegData _data;
String _message;
RegList({int code, RegData data, String message}) {
this._code = code;
this._data = data;
this._message = message;
}
int get code => _code;
set code(int code) => _code = code;
RegData get data => _data;
set data(RegData data) => _data = data;
String get message => _message;
set message(String message) => _message = message;
RegList.fromJson(Map<String, dynamic> json) {
_code = json['code'];
_data = json['data'] != null ? new RegData.fromJson(json['data']) : null;
_message = json['message'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['code'] = this._code;
if (this._data != null) {
data['data'] = this._data.toJson();
}
data['message'] = this._message;
return data;
}
}
class RegData {
RegEntity _userInfo;
String _userToken;
RegData({RegEntity userInfo, String userToken}) {
this._userInfo = userInfo;
this._userToken = userToken;
}
RegEntity get userInfo => _userInfo;
set userInfo(RegEntity userInfo) => _userInfo = userInfo;
String get userToken => _userToken;
set userToken(String userToken) => _userToken = userToken;
RegData.fromJson(Map<String, dynamic> json) {
_userInfo = json['user_info'] != null
? new RegEntity.fromJson(json['user_info'])
: null;
_userToken = json['user_token'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
if (this._userInfo != null) {
data['user_info'] = this._userInfo.toJson();
}
data['user_token'] = this._userToken;
return data;
}
}
class RegEntity {
String _userAutograph;
String _userBankCard;
String _userBirthday;
String _userConstellation;
String _userEmail;
String _userHeadImg;
int _userId;
String _userIdCard;
String _userNickname;
String _userPhone;
String _userRealName;
String _userRegTime;
String _userSex;
String _userUid;
String _userWork;
RegEntity(
{String userAutograph,
String userBankCard,
String userBirthday,
String userConstellation,
String userEmail,
String userHeadImg,
int userId,
String userIdCard,
String userNickname,
String userPhone,
String userRealName,
String userRegTime,
String userSex,
String userUid,
String userWork}) {
this._userAutograph = userAutograph;
this._userBankCard = userBankCard;
this._userBirthday = userBirthday;
this._userConstellation = userConstellation;
this._userEmail = userEmail;
this._userHeadImg = userHeadImg;
this._userId = userId;
this._userIdCard = userIdCard;
this._userNickname = userNickname;
this._userPhone = userPhone;
this._userRealName = userRealName;
this._userRegTime = userRegTime;
this._userSex = userSex;
this._userUid = userUid;
this._userWork = userWork;
}
String get userAutograph => _userAutograph;
set userAutograph(String userAutograph) => _userAutograph = userAutograph;
String get userBankCard => _userBankCard;
set userBankCard(String userBankCard) => _userBankCard = userBankCard;
String get userBirthday => _userBirthday;
set userBirthday(String userBirthday) => _userBirthday = userBirthday;
String get userConstellation => _userConstellation;
set userConstellation(String userConstellation) =>
_userConstellation = userConstellation;
String get userEmail => _userEmail;
set userEmail(String userEmail) => _userEmail = userEmail;
String get userHeadImg => _userHeadImg;
set userHeadImg(String userHeadImg) => _userHeadImg = userHeadImg;
int get userId => _userId;
set userId(int userId) => _userId = userId;
String get userIdCard => _userIdCard;
set userIdCard(String userIdCard) => _userIdCard = userIdCard;
String get userNickname => _userNickname;
set userNickname(String userNickname) => _userNickname = userNickname;
String get userPhone => _userPhone;
set userPhone(String userPhone) => _userPhone = userPhone;
String get userRealName => _userRealName;
set userRealName(String userRealName) => _userRealName = userRealName;
String get userRegTime => _userRegTime;
set userRegTime(String userRegTime) => _userRegTime = userRegTime;
String get userSex => _userSex;
set userSex(String userSex) => _userSex = userSex;
String get userUid => _userUid;
set userUid(String userUid) => _userUid = userUid;
String get userWork => _userWork;
set userWork(String userWork) => _userWork = userWork;
RegEntity.fromJson(Map<String, dynamic> json) {
_userAutograph = json['user_autograph'];
_userBankCard = json['user_bank_card'];
_userBirthday = json['user_birthday'];
_userConstellation = json['user_constellation'];
_userEmail = json['user_email'];
_userHeadImg = json['user_head_img'];
_userId = json['user_id'];
_userIdCard = json['user_id_card'];
_userNickname = json['user_nickname'];
_userPhone = json['user_phone'];
_userRealName = json['user_real_name'];
_userRegTime = json['user_reg_time'];
_userSex = json['user_sex'];
_userUid = json['user_uid'];
_userWork = json['user_work'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['user_autograph'] = this._userAutograph;
data['user_bank_card'] = this._userBankCard;
data['user_birthday'] = this._userBirthday;
data['user_constellation'] = this._userConstellation;
data['user_email'] = this._userEmail;
data['user_head_img'] = this._userHeadImg;
data['user_id'] = this._userId;
data['user_id_card'] = this._userIdCard;
data['user_nickname'] = this._userNickname;
data['user_phone'] = this._userPhone;
data['user_real_name'] = this._userRealName;
data['user_reg_time'] = this._userRegTime;
data['user_sex'] = this._userSex;
data['user_uid'] = this._userUid;
data['user_work'] = this._userWork;
return data;
}
}

View File

@@ -0,0 +1,90 @@
class TagRecommendTagEntityList {
int _code;
List<TagRecommendTagEntityData> _data;
String _message;
TagRecommendTagEntityList(
{int code, List<TagRecommendTagEntityData> data, String message}) {
this._code = code;
this._data = data;
this._message = message;
}
int get code => _code;
set code(int code) => _code = code;
List<TagRecommendTagEntityData> get data => _data;
set data(List<TagRecommendTagEntityData> data) => _data = data;
String get message => _message;
set message(String message) => _message = message;
TagRecommendTagEntityList.fromJson(Map<String, dynamic> json) {
_code = json['code'];
if (json['data'] != null) {
_data = new List<TagRecommendTagEntityData>();
json['data'].forEach((v) {
_data.add(new TagRecommendTagEntityData.fromJson(v));
});
}
_message = json['message'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['code'] = this._code;
if (this._data != null) {
data['data'] = this._data.map((v) => v.toJson()).toList();
}
data['message'] = this._message;
return data;
}
}
class TagRecommendTagEntityData {
int _opusId;
int _tagsId;
int _tagsRecommend;
String _tagsTitle;
int _userId;
TagRecommendTagEntityData(
{int opusId,
int tagsId,
int tagsRecommend,
String tagsTitle,
int userId}) {
this._opusId = opusId;
this._tagsId = tagsId;
this._tagsRecommend = tagsRecommend;
this._tagsTitle = tagsTitle;
this._userId = userId;
}
int get opusId => _opusId;
set opusId(int opusId) => _opusId = opusId;
int get tagsId => _tagsId;
set tagsId(int tagsId) => _tagsId = tagsId;
int get tagsRecommend => _tagsRecommend;
set tagsRecommend(int tagsRecommend) => _tagsRecommend = tagsRecommend;
String get tagsTitle => _tagsTitle;
set tagsTitle(String tagsTitle) => _tagsTitle = tagsTitle;
int get userId => _userId;
set userId(int userId) => _userId = userId;
TagRecommendTagEntityData.fromJson(Map<String, dynamic> json) {
_opusId = json['opus_id'];
_tagsId = json['tags_id'];
_tagsRecommend = json['tags_recommend'];
_tagsTitle = json['tags_title'];
_userId = json['user_id'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['opus_id'] = this._opusId;
data['tags_id'] = this._tagsId;
data['tags_recommend'] = this._tagsRecommend;
data['tags_title'] = this._tagsTitle;
data['user_id'] = this._userId;
return data;
}
}

View File

@@ -0,0 +1,58 @@
class ToolUploadFileEntityList {
int _code;
String _message;
ToolUploadFileEntityData _data;
ToolUploadFileEntityList(
{int code, String message, ToolUploadFileEntityData data}) {
this._code = code;
this._message = message;
this._data = data;
}
int get code => _code;
set code(int code) => _code = code;
String get message => _message;
set message(String message) => _message = message;
ToolUploadFileEntityData get data => _data;
set data(ToolUploadFileEntityData data) => _data = data;
ToolUploadFileEntityList.fromJson(Map<String, dynamic> json) {
_code = json['code'];
_message = json['message'];
_data = json['data'] != null
? new ToolUploadFileEntityData.fromJson(json['data'])
: null;
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['code'] = this._code;
data['message'] = this._message;
if (this._data != null) {
data['data'] = this._data.toJson();
}
return data;
}
}
class ToolUploadFileEntityData {
String _imgUrl;
ToolUploadFileEntityData({String imgUrl}) {
this._imgUrl = imgUrl;
}
String get imgUrl => _imgUrl;
set imgUrl(String imgUrl) => _imgUrl = imgUrl;
ToolUploadFileEntityData.fromJson(Map<String, dynamic> json) {
_imgUrl = json['img_url'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['img_url'] = this._imgUrl;
return data;
}
}

View File

@@ -0,0 +1,114 @@
class UpdateVersionEntity {
int _code;
Null _message;
Data _data;
UpdateVersionEntity({int code, Null message, Data data}) {
this._code = code;
this._message = message;
this._data = data;
}
int get code => _code;
set code(int code) => _code = code;
Null get message => _message;
set message(Null message) => _message = message;
Data get data => _data;
set data(Data data) => _data = data;
UpdateVersionEntity.fromJson(Map<String, dynamic> json) {
_code = json['code'];
_message = json['message'];
_data = json['data'] != null ? new Data.fromJson(json['data']) : null;
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['code'] = this._code;
data['message'] = this._message;
if (this._data != null) {
data['data'] = this._data.toJson();
}
return data;
}
}
class Data {
int _updateId;
String _updateVersion;
int _updateVersionCode;
String _updateDownUrl;
String _updateContent;
int _updateForce;
int _updateDownCount;
int _updateSize;
String _updateTime;
Data(
{int updateId,
String updateVersion,
int updateVersionCode,
String updateDownUrl,
String updateContent,
int updateForce,
int updateDownCount,
int updateSize,
String updateTime}) {
this._updateId = updateId;
this._updateVersion = updateVersion;
this._updateVersionCode = updateVersionCode;
this._updateDownUrl = updateDownUrl;
this._updateContent = updateContent;
this._updateForce = updateForce;
this._updateDownCount = updateDownCount;
this._updateSize = updateSize;
this._updateTime = updateTime;
}
int get updateId => _updateId;
set updateId(int updateId) => _updateId = updateId;
String get updateVersion => _updateVersion;
set updateVersion(String updateVersion) => _updateVersion = updateVersion;
int get updateVersionCode => _updateVersionCode;
set updateVersionCode(int updateVersionCode) =>
_updateVersionCode = updateVersionCode;
String get updateDownUrl => _updateDownUrl;
set updateDownUrl(String updateDownUrl) => _updateDownUrl = updateDownUrl;
String get updateContent => _updateContent;
set updateContent(String updateContent) => _updateContent = updateContent;
int get updateForce => _updateForce;
set updateForce(int updateForce) => _updateForce = updateForce;
int get updateDownCount => _updateDownCount;
set updateDownCount(int updateDownCount) =>
_updateDownCount = updateDownCount;
int get updateSize => _updateSize;
set updateSize(int updateSize) => _updateSize = updateSize;
String get updateTime => _updateTime;
set updateTime(String updateTime) => _updateTime = updateTime;
Data.fromJson(Map<String, dynamic> json) {
_updateId = json['update_id'];
_updateVersion = json['update_version'];
_updateVersionCode = json['update_version_code'];
_updateDownUrl = json['update_down_url'];
_updateContent = json['update_content'];
_updateForce = json['update_force'];
_updateDownCount = json['update_down_count'];
_updateSize = json['update_size'];
_updateTime = json['update_time'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['update_id'] = this._updateId;
data['update_version'] = this._updateVersion;
data['update_version_code'] = this._updateVersionCode;
data['update_down_url'] = this._updateDownUrl;
data['update_content'] = this._updateContent;
data['update_force'] = this._updateForce;
data['update_down_count'] = this._updateDownCount;
data['update_size'] = this._updateSize;
data['update_time'] = this._updateTime;
return data;
}
}

View File

@@ -0,0 +1,186 @@
class LoginList {
int _code;
LoginData _data;
String _message;
LoginList({int code, LoginData data, String message}) {
this._code = code;
this._data = data;
this._message = message;
}
int get code => _code;
set code(int code) => _code = code;
LoginData get data => _data;
set data(LoginData data) => _data = data;
String get message => _message;
set message(String message) => _message = message;
LoginList.fromJson(Map<String, dynamic> json) {
_code = json['code'];
_data = json['data'] != null ? new LoginData.fromJson(json['data']) : null;
_message = json['message'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['code'] = this._code;
if (this._data != null) {
data['data'] = this._data.toJson();
}
data['message'] = this._message;
return data;
}
}
class LoginData {
UserInfo _userInfo;
String _userToken;
LoginData({UserInfo userInfo, String userToken}) {
this._userInfo = userInfo;
this._userToken = userToken;
}
UserInfo get userInfo => _userInfo;
set userInfo(UserInfo userInfo) => _userInfo = userInfo;
String get userToken => _userToken;
set userToken(String userToken) => _userToken = userToken;
LoginData.fromJson(Map<String, dynamic> json) {
_userInfo = json['user_info'] != null
? new UserInfo.fromJson(json['user_info'])
: null;
_userToken = json['user_token'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
if (this._userInfo != null) {
data['user_info'] = this._userInfo.toJson();
}
data['user_token'] = this._userToken;
return data;
}
}
class UserInfo {
String _userAutograph;
String _userBankCard;
String _userBirthday;
String _userConstellation;
String _userEmail;
String _userHeadImg;
int _userId;
String _userIdCard;
String _userNickname;
String _userPhone;
String _userRealName;
String _userRegTime;
String _userSex;
String _userUid;
String _userWork;
UserInfo(
{String userAutograph,
String userBankCard,
String userBirthday,
String userConstellation,
String userEmail,
String userHeadImg,
int userId,
String userIdCard,
String userNickname,
String userPhone,
String userRealName,
String userRegTime,
String userSex,
String userUid,
String userWork}) {
this._userAutograph = userAutograph;
this._userBankCard = userBankCard;
this._userBirthday = userBirthday;
this._userConstellation = userConstellation;
this._userEmail = userEmail;
this._userHeadImg = userHeadImg;
this._userId = userId;
this._userIdCard = userIdCard;
this._userNickname = userNickname;
this._userPhone = userPhone;
this._userRealName = userRealName;
this._userRegTime = userRegTime;
this._userSex = userSex;
this._userUid = userUid;
this._userWork = userWork;
}
String get userAutograph => _userAutograph;
set userAutograph(String userAutograph) => _userAutograph = userAutograph;
String get userBankCard => _userBankCard;
set userBankCard(String userBankCard) => _userBankCard = userBankCard;
String get userBirthday => _userBirthday;
set userBirthday(String userBirthday) => _userBirthday = userBirthday;
String get userConstellation => _userConstellation;
set userConstellation(String userConstellation) =>
_userConstellation = userConstellation;
String get userEmail => _userEmail;
set userEmail(String userEmail) => _userEmail = userEmail;
String get userHeadImg => _userHeadImg;
set userHeadImg(String userHeadImg) => _userHeadImg = userHeadImg;
int get userId => _userId;
set userId(int userId) => _userId = userId;
String get userIdCard => _userIdCard;
set userIdCard(String userIdCard) => _userIdCard = userIdCard;
String get userNickname => _userNickname;
set userNickname(String userNickname) => _userNickname = userNickname;
String get userPhone => _userPhone;
set userPhone(String userPhone) => _userPhone = userPhone;
String get userRealName => _userRealName;
set userRealName(String userRealName) => _userRealName = userRealName;
String get userRegTime => _userRegTime;
set userRegTime(String userRegTime) => _userRegTime = userRegTime;
String get userSex => _userSex;
set userSex(String userSex) => _userSex = userSex;
String get userUid => _userUid;
set userUid(String userUid) => _userUid = userUid;
String get userWork => _userWork;
set userWork(String userWork) => _userWork = userWork;
UserInfo.fromJson(Map<String, dynamic> json) {
_userAutograph = json['user_autograph'];
_userBankCard = json['user_bank_card'];
_userBirthday = json['user_birthday'];
_userConstellation = json['user_constellation'];
_userEmail = json['user_email'];
_userHeadImg = json['user_head_img'];
_userId = json['user_id'];
_userIdCard = json['user_id_card'];
_userNickname = json['user_nickname'];
_userPhone = json['user_phone'];
_userRealName = json['user_real_name'];
_userRegTime = json['user_reg_time'];
_userSex = json['user_sex'];
_userUid = json['user_uid'];
_userWork = json['user_work'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['user_autograph'] = this._userAutograph;
data['user_bank_card'] = this._userBankCard;
data['user_birthday'] = this._userBirthday;
data['user_constellation'] = this._userConstellation;
data['user_email'] = this._userEmail;
data['user_head_img'] = this._userHeadImg;
data['user_id'] = this._userId;
data['user_id_card'] = this._userIdCard;
data['user_nickname'] = this._userNickname;
data['user_phone'] = this._userPhone;
data['user_real_name'] = this._userRealName;
data['user_reg_time'] = this._userRegTime;
data['user_sex'] = this._userSex;
data['user_uid'] = this._userUid;
data['user_work'] = this._userWork;
return data;
}
}

View File

@@ -0,0 +1,101 @@
class UserInfoPersonalEntityList {
int _code;
String _message;
UserInfoPersonalEntityData _data;
UserInfoPersonalEntityList(
{int code, String message, UserInfoPersonalEntityData data}) {
this._code = code;
this._message = message;
this._data = data;
}
int get code => _code;
set code(int code) => _code = code;
String get message => _message;
set message(String message) => _message = message;
UserInfoPersonalEntityData get data => _data;
set data(UserInfoPersonalEntityData data) => _data = data;
UserInfoPersonalEntityList.fromJson(Map<String, dynamic> json) {
_code = json['code'];
_message = json['message'];
_data = json['data'] != null
? new UserInfoPersonalEntityData.fromJson(json['data'])
: null;
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['code'] = this._code;
data['message'] = this._message;
if (this._data != null) {
data['data'] = this._data.toJson();
}
return data;
}
}
class UserInfoPersonalEntityData {
int _fansNums;
int _satisfiedNums;
int _userId;
String _userAutograph;
String _userNickname;
int _followNums;
String _userHeadImg;
UserInfoPersonalEntityData(
{int fansNums,
int satisfiedNums,
int userId,
String userAutograph,
String userNickname,
int followNums,
String userHeadImg}) {
this._fansNums = fansNums;
this._satisfiedNums = satisfiedNums;
this._userId = userId;
this._userAutograph = userAutograph;
this._userNickname = userNickname;
this._followNums = followNums;
this._userHeadImg = userHeadImg;
}
int get fansNums => _fansNums;
set fansNums(int fansNums) => _fansNums = fansNums;
int get satisfiedNums => _satisfiedNums;
set satisfiedNums(int satisfiedNums) => _satisfiedNums = satisfiedNums;
int get userId => _userId;
set userId(int userId) => _userId = userId;
String get userAutograph => _userAutograph;
set userAutograph(String userAutograph) => _userAutograph = userAutograph;
String get userNickname => _userNickname;
set userNickname(String userNickname) => _userNickname = userNickname;
int get followNums => _followNums;
set followNums(int followNums) => _followNums = followNums;
String get userHeadImg => _userHeadImg;
set userHeadImg(String userHeadImg) => _userHeadImg = userHeadImg;
UserInfoPersonalEntityData.fromJson(Map<String, dynamic> json) {
_fansNums = json['fans_nums'];
_satisfiedNums = json['satisfied_nums'];
_userId = json['user_id'];
_userAutograph = json['user_autograph'];
_userNickname = json['user_nickname'];
_followNums = json['follow_nums'];
_userHeadImg = json['user_head_img'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['fans_nums'] = this._fansNums;
data['satisfied_nums'] = this._satisfiedNums;
data['user_id'] = this._userId;
data['user_autograph'] = this._userAutograph;
data['user_nickname'] = this._userNickname;
data['follow_nums'] = this._followNums;
data['user_head_img'] = this._userHeadImg;
return data;
}
}

View File

@@ -0,0 +1,29 @@
library entity;
export 'UserEntity.dart';
export 'RegEntity.dart';
export 'OpusRecommend.dart';
export 'PageEntity.dart';
export 'OpusOpusInfoEntity.dart';
export 'PubilcEntity.dart';
export 'ImagePickerEntity.dart';
export 'CheckUserIsFollowEntity.dart';
export 'EmptyEntity.dart';
export 'ToolUploadFileEntity.dart';
export 'CommenListEntity.dart';
export 'DynamicPersonalDynamicEntity.dart';
export 'DynamicTabsDynamicEntity.dart';
export 'DynamicDynamicHistoryEntity.dart';
export 'TagRecommendTagEntity.dart';
export 'OpusRankingEntity.dart';
export 'OpusSearchTagEntity.dart';
export 'OpusSearchUserEntity.dart';
export 'DynamicInfoEntity.dart';
export 'OpusTagEntity.dart';
export 'UserInfoPersonalEntity.dart';
export 'CollectionOpusListEntity.dart';
export 'FollowEntity.dart';
export 'OpusListEntity.dart';
export 'UpdateVersionEntity.dart';
export 'FansUserListEntity.dart';
export 'FollowUserListEntity.dart';