parent
18529da4fb
commit
3da2ce23ec
@ -0,0 +1,24 @@
|
|||||||
|
env:
|
||||||
|
output: dist/
|
||||||
|
releases:
|
||||||
|
- name: dev
|
||||||
|
jobs:
|
||||||
|
# Build and publish your apk pkg to pgyer
|
||||||
|
- name: release-dev-android
|
||||||
|
package:
|
||||||
|
platform: android
|
||||||
|
target: apk
|
||||||
|
build_args:
|
||||||
|
target-platform: android-arm,android-arm64
|
||||||
|
dart-define:
|
||||||
|
APP_ENV: dev
|
||||||
|
publish_to: pgyer
|
||||||
|
# Build and publish your ipa pkg to pgyer
|
||||||
|
- name: release-dev-ios
|
||||||
|
package:
|
||||||
|
platform: ios
|
||||||
|
target: ipa
|
||||||
|
build_args:
|
||||||
|
export-options-plist: ios/dev_ExportOptions.plist
|
||||||
|
dart-define:
|
||||||
|
APP_ENV: dev
|
@ -0,0 +1,63 @@
|
|||||||
|
import 'package:json_annotation/json_annotation.dart';
|
||||||
|
|
||||||
|
import 'package:aku_new_community/model/common/img_model.dart';
|
||||||
|
|
||||||
|
part 'all_dynamic_list_model.g.dart';
|
||||||
|
|
||||||
|
@JsonSerializable()
|
||||||
|
class AllDynamicListModel {
|
||||||
|
final int id;
|
||||||
|
final String? content;
|
||||||
|
final int isComment;
|
||||||
|
final int isPublic;
|
||||||
|
final int createId;
|
||||||
|
final String createName;
|
||||||
|
final String createDate;
|
||||||
|
final List<ImgModel>? avatarImgList;
|
||||||
|
final int likes;
|
||||||
|
final int views;
|
||||||
|
final int commentNum;
|
||||||
|
final List<ImgModel>? dynamicImgList;
|
||||||
|
final bool allowDelete;
|
||||||
|
final List<TopicTag> topicTags;
|
||||||
|
final bool isLike;
|
||||||
|
|
||||||
|
factory AllDynamicListModel.fromJson(Map<String, dynamic> json) =>
|
||||||
|
_$AllDynamicListModelFromJson(json);
|
||||||
|
|
||||||
|
List<ImgModel> get dynamicList => dynamicImgList ?? [];
|
||||||
|
|
||||||
|
const AllDynamicListModel({
|
||||||
|
required this.id,
|
||||||
|
this.content,
|
||||||
|
required this.isComment,
|
||||||
|
required this.isPublic,
|
||||||
|
required this.createId,
|
||||||
|
required this.createName,
|
||||||
|
required this.createDate,
|
||||||
|
this.avatarImgList,
|
||||||
|
required this.likes,
|
||||||
|
required this.views,
|
||||||
|
required this.commentNum,
|
||||||
|
this.dynamicImgList,
|
||||||
|
required this.allowDelete,
|
||||||
|
required this.topicTags,
|
||||||
|
required this.isLike,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonSerializable()
|
||||||
|
class TopicTag {
|
||||||
|
final int id;
|
||||||
|
final String title;
|
||||||
|
final int type;
|
||||||
|
|
||||||
|
factory TopicTag.fromJson(Map<String, dynamic> json) =>
|
||||||
|
_$TopicTagFromJson(json);
|
||||||
|
|
||||||
|
const TopicTag({
|
||||||
|
required this.id,
|
||||||
|
required this.title,
|
||||||
|
required this.type,
|
||||||
|
});
|
||||||
|
}
|
@ -0,0 +1,38 @@
|
|||||||
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||||
|
|
||||||
|
part of 'all_dynamic_list_model.dart';
|
||||||
|
|
||||||
|
// **************************************************************************
|
||||||
|
// JsonSerializableGenerator
|
||||||
|
// **************************************************************************
|
||||||
|
|
||||||
|
AllDynamicListModel _$AllDynamicListModelFromJson(Map<String, dynamic> json) =>
|
||||||
|
AllDynamicListModel(
|
||||||
|
id: json['id'] as int,
|
||||||
|
content: json['content'] as String?,
|
||||||
|
isComment: json['isComment'] as int,
|
||||||
|
isPublic: json['isPublic'] as int,
|
||||||
|
createId: json['createId'] as int,
|
||||||
|
createName: json['createName'] as String,
|
||||||
|
createDate: json['createDate'] as String,
|
||||||
|
avatarImgList: (json['avatarImgList'] as List<dynamic>?)
|
||||||
|
?.map((e) => ImgModel.fromJson(e as Map<String, dynamic>))
|
||||||
|
.toList(),
|
||||||
|
likes: json['likes'] as int,
|
||||||
|
views: json['views'] as int,
|
||||||
|
commentNum: json['commentNum'] as int,
|
||||||
|
dynamicImgList: (json['dynamicImgList'] as List<dynamic>?)
|
||||||
|
?.map((e) => ImgModel.fromJson(e as Map<String, dynamic>))
|
||||||
|
.toList(),
|
||||||
|
allowDelete: json['allowDelete'] as bool,
|
||||||
|
topicTags: (json['topicTags'] as List<dynamic>)
|
||||||
|
.map((e) => TopicTag.fromJson(e as Map<String, dynamic>))
|
||||||
|
.toList(),
|
||||||
|
isLike: json['isLike'] as bool,
|
||||||
|
);
|
||||||
|
|
||||||
|
TopicTag _$TopicTagFromJson(Map<String, dynamic> json) => TopicTag(
|
||||||
|
id: json['id'] as int,
|
||||||
|
title: json['title'] as String,
|
||||||
|
type: json['type'] as int,
|
||||||
|
);
|
@ -0,0 +1,65 @@
|
|||||||
|
import 'package:aku_new_community/model/common/img_model.dart';
|
||||||
|
import 'package:json_annotation/json_annotation.dart';
|
||||||
|
|
||||||
|
part 'comment_list_model.g.dart';
|
||||||
|
|
||||||
|
@JsonSerializable()
|
||||||
|
class CommentListModel {
|
||||||
|
final int id;
|
||||||
|
final String content;
|
||||||
|
final int createId;
|
||||||
|
final String createName;
|
||||||
|
final String createDate;
|
||||||
|
final List<ImgModel> avatarImgList;
|
||||||
|
final int likes;
|
||||||
|
final int commentNum;
|
||||||
|
final bool allowDelete;
|
||||||
|
final bool isLike;
|
||||||
|
final List<CommentTwoList> commentTwoList;
|
||||||
|
factory CommentListModel.fromJson(Map<String, dynamic> json) =>
|
||||||
|
_$CommentListModelFromJson(json);
|
||||||
|
|
||||||
|
const CommentListModel({
|
||||||
|
required this.id,
|
||||||
|
required this.content,
|
||||||
|
required this.createId,
|
||||||
|
required this.createName,
|
||||||
|
required this.createDate,
|
||||||
|
required this.avatarImgList,
|
||||||
|
required this.likes,
|
||||||
|
required this.commentNum,
|
||||||
|
required this.allowDelete,
|
||||||
|
required this.isLike,
|
||||||
|
required this.commentTwoList,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonSerializable()
|
||||||
|
class CommentTwoList {
|
||||||
|
final int id;
|
||||||
|
final String content;
|
||||||
|
final int createId;
|
||||||
|
final String createName;
|
||||||
|
final int parentId;
|
||||||
|
final String? parentName;
|
||||||
|
final String createDate;
|
||||||
|
final List<ImgModel> avatarImgList;
|
||||||
|
final int likes;
|
||||||
|
final bool allowDelete;
|
||||||
|
final bool isLike;
|
||||||
|
factory CommentTwoList.fromJson(Map<String, dynamic> json) =>
|
||||||
|
_$CommentTwoListFromJson(json);
|
||||||
|
const CommentTwoList({
|
||||||
|
required this.id,
|
||||||
|
required this.content,
|
||||||
|
required this.createId,
|
||||||
|
required this.createName,
|
||||||
|
required this.parentId,
|
||||||
|
required this.parentName,
|
||||||
|
required this.createDate,
|
||||||
|
required this.avatarImgList,
|
||||||
|
required this.likes,
|
||||||
|
required this.allowDelete,
|
||||||
|
required this.isLike,
|
||||||
|
});
|
||||||
|
}
|
@ -0,0 +1,43 @@
|
|||||||
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||||
|
|
||||||
|
part of 'comment_list_model.dart';
|
||||||
|
|
||||||
|
// **************************************************************************
|
||||||
|
// JsonSerializableGenerator
|
||||||
|
// **************************************************************************
|
||||||
|
|
||||||
|
CommentListModel _$CommentListModelFromJson(Map<String, dynamic> json) =>
|
||||||
|
CommentListModel(
|
||||||
|
id: json['id'] as int,
|
||||||
|
content: json['content'] as String,
|
||||||
|
createId: json['createId'] as int,
|
||||||
|
createName: json['createName'] as String,
|
||||||
|
createDate: json['createDate'] as String,
|
||||||
|
avatarImgList: (json['avatarImgList'] as List<dynamic>)
|
||||||
|
.map((e) => ImgModel.fromJson(e as Map<String, dynamic>))
|
||||||
|
.toList(),
|
||||||
|
likes: json['likes'] as int,
|
||||||
|
commentNum: json['commentNum'] as int,
|
||||||
|
allowDelete: json['allowDelete'] as bool,
|
||||||
|
isLike: json['isLike'] as bool,
|
||||||
|
commentTwoList: (json['commentTwoList'] as List<dynamic>)
|
||||||
|
.map((e) => CommentTwoList.fromJson(e as Map<String, dynamic>))
|
||||||
|
.toList(),
|
||||||
|
);
|
||||||
|
|
||||||
|
CommentTwoList _$CommentTwoListFromJson(Map<String, dynamic> json) =>
|
||||||
|
CommentTwoList(
|
||||||
|
id: json['id'] as int,
|
||||||
|
content: json['content'] as String,
|
||||||
|
createId: json['createId'] as int,
|
||||||
|
createName: json['createName'] as String,
|
||||||
|
parentId: json['parentId'] as int,
|
||||||
|
parentName: json['parentName'] as String,
|
||||||
|
createDate: json['createDate'] as String,
|
||||||
|
avatarImgList: (json['avatarImgList'] as List<dynamic>)
|
||||||
|
.map((e) => ImgModel.fromJson(e as Map<String, dynamic>))
|
||||||
|
.toList(),
|
||||||
|
likes: json['likes'] as int,
|
||||||
|
allowDelete: json['allowDelete'] as bool,
|
||||||
|
isLike: json['isLike'] as bool,
|
||||||
|
);
|
@ -0,0 +1,45 @@
|
|||||||
|
import 'package:json_annotation/json_annotation.dart';
|
||||||
|
|
||||||
|
import 'package:aku_new_community/model/common/img_model.dart';
|
||||||
|
import 'package:aku_new_community/models/community/all_dynamic_list_model.dart';
|
||||||
|
|
||||||
|
part 'dynamic_detail_model.g.dart';
|
||||||
|
|
||||||
|
@JsonSerializable()
|
||||||
|
class DynamicDetailModel {
|
||||||
|
final int id;
|
||||||
|
final String? content;
|
||||||
|
final int isComment;
|
||||||
|
final int isPublic;
|
||||||
|
final int createId;
|
||||||
|
final String createName;
|
||||||
|
final String createDate;
|
||||||
|
final List<ImgModel> avatarImgList;
|
||||||
|
final int likes;
|
||||||
|
final int views;
|
||||||
|
final int commentNum;
|
||||||
|
final List<ImgModel> dynamicImgList;
|
||||||
|
final bool allowDelete;
|
||||||
|
final List<TopicTag> topicTags;
|
||||||
|
final bool isLike;
|
||||||
|
factory DynamicDetailModel.fromJson(Map<String, dynamic> json) =>
|
||||||
|
_$DynamicDetailModelFromJson(json);
|
||||||
|
|
||||||
|
const DynamicDetailModel({
|
||||||
|
required this.id,
|
||||||
|
this.content,
|
||||||
|
required this.isComment,
|
||||||
|
required this.isPublic,
|
||||||
|
required this.createId,
|
||||||
|
required this.createName,
|
||||||
|
required this.createDate,
|
||||||
|
required this.avatarImgList,
|
||||||
|
required this.likes,
|
||||||
|
required this.views,
|
||||||
|
required this.commentNum,
|
||||||
|
required this.dynamicImgList,
|
||||||
|
required this.allowDelete,
|
||||||
|
required this.topicTags,
|
||||||
|
required this.isLike,
|
||||||
|
});
|
||||||
|
}
|
@ -0,0 +1,32 @@
|
|||||||
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||||
|
|
||||||
|
part of 'dynamic_detail_model.dart';
|
||||||
|
|
||||||
|
// **************************************************************************
|
||||||
|
// JsonSerializableGenerator
|
||||||
|
// **************************************************************************
|
||||||
|
|
||||||
|
DynamicDetailModel _$DynamicDetailModelFromJson(Map<String, dynamic> json) =>
|
||||||
|
DynamicDetailModel(
|
||||||
|
id: json['id'] as int,
|
||||||
|
content: json['content'] as String?,
|
||||||
|
isComment: json['isComment'] as int,
|
||||||
|
isPublic: json['isPublic'] as int,
|
||||||
|
createId: json['createId'] as int,
|
||||||
|
createName: json['createName'] as String,
|
||||||
|
createDate: json['createDate'] as String,
|
||||||
|
avatarImgList: (json['avatarImgList'] as List<dynamic>)
|
||||||
|
.map((e) => ImgModel.fromJson(e as Map<String, dynamic>))
|
||||||
|
.toList(),
|
||||||
|
likes: json['likes'] as int,
|
||||||
|
views: json['views'] as int,
|
||||||
|
commentNum: json['commentNum'] as int,
|
||||||
|
dynamicImgList: (json['dynamicImgList'] as List<dynamic>)
|
||||||
|
.map((e) => ImgModel.fromJson(e as Map<String, dynamic>))
|
||||||
|
.toList(),
|
||||||
|
allowDelete: json['allowDelete'] as bool,
|
||||||
|
topicTags: (json['topicTags'] as List<dynamic>)
|
||||||
|
.map((e) => TopicTag.fromJson(e as Map<String, dynamic>))
|
||||||
|
.toList(),
|
||||||
|
isLike: json['isLike'] as bool,
|
||||||
|
);
|
@ -0,0 +1,30 @@
|
|||||||
|
import 'package:json_annotation/json_annotation.dart';
|
||||||
|
|
||||||
|
import 'package:aku_new_community/model/common/img_model.dart';
|
||||||
|
|
||||||
|
part 'top_detail_model.g.dart';
|
||||||
|
|
||||||
|
@JsonSerializable()
|
||||||
|
class TopDetailModel {
|
||||||
|
final int id;
|
||||||
|
final String title;
|
||||||
|
final String content;
|
||||||
|
final int isPublic;
|
||||||
|
final int isRating;
|
||||||
|
final int dynamicNum;
|
||||||
|
final int commentNum;
|
||||||
|
final List<ImgModel> imgList;
|
||||||
|
factory TopDetailModel.fromJson(Map<String, dynamic> json) =>
|
||||||
|
_$TopDetailModelFromJson(json);
|
||||||
|
|
||||||
|
const TopDetailModel({
|
||||||
|
required this.id,
|
||||||
|
required this.title,
|
||||||
|
required this.content,
|
||||||
|
required this.isPublic,
|
||||||
|
required this.isRating,
|
||||||
|
required this.dynamicNum,
|
||||||
|
required this.commentNum,
|
||||||
|
required this.imgList,
|
||||||
|
});
|
||||||
|
}
|
@ -0,0 +1,21 @@
|
|||||||
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||||
|
|
||||||
|
part of 'top_detail_model.dart';
|
||||||
|
|
||||||
|
// **************************************************************************
|
||||||
|
// JsonSerializableGenerator
|
||||||
|
// **************************************************************************
|
||||||
|
|
||||||
|
TopDetailModel _$TopDetailModelFromJson(Map<String, dynamic> json) =>
|
||||||
|
TopDetailModel(
|
||||||
|
id: json['id'] as int,
|
||||||
|
title: json['title'] as String,
|
||||||
|
content: json['content'] as String,
|
||||||
|
isPublic: json['isPublic'] as int,
|
||||||
|
isRating: json['isRating'] as int,
|
||||||
|
dynamicNum: json['dynamicNum'] as int,
|
||||||
|
commentNum: json['commentNum'] as int,
|
||||||
|
imgList: (json['imgList'] as List<dynamic>)
|
||||||
|
.map((e) => ImgModel.fromJson(e as Map<String, dynamic>))
|
||||||
|
.toList(),
|
||||||
|
);
|
@ -0,0 +1,29 @@
|
|||||||
|
import 'package:json_annotation/json_annotation.dart';
|
||||||
|
|
||||||
|
import 'package:aku_new_community/model/common/img_model.dart';
|
||||||
|
|
||||||
|
part 'topic_list_model.g.dart';
|
||||||
|
|
||||||
|
@JsonSerializable()
|
||||||
|
class TopicListModel {
|
||||||
|
final int id;
|
||||||
|
final String title;
|
||||||
|
final String content;
|
||||||
|
final int isPublic;
|
||||||
|
final int isRating;
|
||||||
|
final int dynamicNum;
|
||||||
|
final int commentNum;
|
||||||
|
final List<ImgModel> imgList;
|
||||||
|
factory TopicListModel.fromJson(Map<String, dynamic> json) =>
|
||||||
|
_$TopicListModelFromJson(json);
|
||||||
|
const TopicListModel({
|
||||||
|
required this.id,
|
||||||
|
required this.title,
|
||||||
|
required this.content,
|
||||||
|
required this.isPublic,
|
||||||
|
required this.isRating,
|
||||||
|
required this.dynamicNum,
|
||||||
|
required this.commentNum,
|
||||||
|
required this.imgList,
|
||||||
|
});
|
||||||
|
}
|
@ -0,0 +1,21 @@
|
|||||||
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||||
|
|
||||||
|
part of 'topic_list_model.dart';
|
||||||
|
|
||||||
|
// **************************************************************************
|
||||||
|
// JsonSerializableGenerator
|
||||||
|
// **************************************************************************
|
||||||
|
|
||||||
|
TopicListModel _$TopicListModelFromJson(Map<String, dynamic> json) =>
|
||||||
|
TopicListModel(
|
||||||
|
id: json['id'] as int,
|
||||||
|
title: json['title'] as String,
|
||||||
|
content: json['content'] as String,
|
||||||
|
isPublic: json['isPublic'] as int,
|
||||||
|
isRating: json['isRating'] as int,
|
||||||
|
dynamicNum: json['dynamicNum'] as int,
|
||||||
|
commentNum: json['commentNum'] as int,
|
||||||
|
imgList: (json['imgList'] as List<dynamic>)
|
||||||
|
.map((e) => ImgModel.fromJson(e as Map<String, dynamic>))
|
||||||
|
.toList(),
|
||||||
|
);
|
@ -0,0 +1,32 @@
|
|||||||
|
import 'package:json_annotation/json_annotation.dart';
|
||||||
|
|
||||||
|
part 'topic_model.g.dart';
|
||||||
|
|
||||||
|
@JsonSerializable()
|
||||||
|
class TopicModel {
|
||||||
|
final int id;
|
||||||
|
final String title;
|
||||||
|
final int type;
|
||||||
|
|
||||||
|
factory TopicModel.fromJson(Map<String, dynamic> json) =>
|
||||||
|
_$TopicModelFromJson(json);
|
||||||
|
|
||||||
|
String get typeToString {
|
||||||
|
switch (type) {
|
||||||
|
case 1:
|
||||||
|
return '普通';
|
||||||
|
case 2:
|
||||||
|
return '推荐';
|
||||||
|
case 3:
|
||||||
|
return '热门';
|
||||||
|
default:
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const TopicModel({
|
||||||
|
required this.id,
|
||||||
|
required this.title,
|
||||||
|
required this.type,
|
||||||
|
});
|
||||||
|
}
|
@ -0,0 +1,13 @@
|
|||||||
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||||
|
|
||||||
|
part of 'topic_model.dart';
|
||||||
|
|
||||||
|
// **************************************************************************
|
||||||
|
// JsonSerializableGenerator
|
||||||
|
// **************************************************************************
|
||||||
|
|
||||||
|
TopicModel _$TopicModelFromJson(Map<String, dynamic> json) => TopicModel(
|
||||||
|
id: json['id'] as int,
|
||||||
|
title: json['title'] as String,
|
||||||
|
type: json['type'] as int,
|
||||||
|
);
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue