1
0
mirror of https://gitee.com/bookshelfplus/bookshelfplus synced 2025-10-21 22:56:41 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee

删除独立的作者、出版社、缩略图表;修正部分字段;实现部分Service以及Controller;项目框架基本建立

This commit is contained in:
2022-03-12 21:56:37 +08:00
parent 3813f54c5e
commit dffb94a148
42 changed files with 801 additions and 1205 deletions

View File

@@ -1,9 +0,0 @@
package plus.bookshelf.Service.Model.Book;
public class AuthorModel {
// 作者Id
Integer id;
// 作者姓名
String name;
}

View File

@@ -1,9 +0,0 @@
package plus.bookshelf.Service.Model.Book;
public class PublishingHouseModel {
// 出版社Id
Integer id;
// 出版社名称
String name;
}

View File

@@ -1,10 +0,0 @@
package plus.bookshelf.Service.Model.Book;
public class ThumbnailModel {
// 书籍缩略图Id
Integer id;
// 缩略图路径
String path;
}

View File

@@ -1,8 +1,9 @@
package plus.bookshelf.Service.Model.Book;
package plus.bookshelf.Service.Model;
import lombok.Data;
import plus.bookshelf.Common.Enum.Language;
import plus.bookshelf.Service.Model.Category.CategoryModel;
@Data
public class BookModel {
// 书籍id
@@ -15,13 +16,13 @@ public class BookModel {
String description;
// 作者姓名
AuthorModel[] author;
String author;
//书籍所属分类
CategoryModel category;
// 出版社
PublishingHouseModel publishingHouse;
String publishingHouse;
// 语言
Language language;
@@ -31,4 +32,7 @@ public class BookModel {
// 是否删除
Boolean isDelete;
// 缩略图
String thumbnail;
}

View File

@@ -1,15 +1,18 @@
package plus.bookshelf.Service.Model.Category;
package plus.bookshelf.Service.Model;
import lombok.Data;
@Data
public class CategoryModel {
// 分类名称
Integer id;
// 分类名称
Integer name;
String name;
// 分类简介
Integer description;
String description;
Boolean isShow;
@@ -20,12 +23,9 @@ public class CategoryModel {
// 分类级别 0为一级分类, 1为二级分类...
Integer level;
// 所属父分类Id
// 父分类
Integer parentId;
// 父分类
CategoryModel parent;
// 子分类集合
CategoryModel[] children;
// // 子分类集合
// Integer[] childrenId;
}

View File

@@ -1,10 +1,11 @@
package plus.bookshelf.Service.Model.File;
package plus.bookshelf.Service.Model;
import lombok.Data;
import org.joda.time.DateTime;
import plus.bookshelf.Common.Enum.BookOrigin;
import plus.bookshelf.Common.Enum.FileFormatEnum;
import plus.bookshelf.Service.Model.Book.ThumbnailModel;
@Data
public class FileModel {
// 文件Id
@@ -34,9 +35,6 @@ public class FileModel {
// 文件来源 电子版/扫描版
BookOrigin bookOrigin;
// 缩略图
ThumbnailModel thumbnail;
// 文件创建时间
DateTime fileCreateAt;

View File

@@ -1,7 +1,9 @@
package plus.bookshelf.Service.Model.File;
package plus.bookshelf.Service.Model;
import lombok.Data;
import plus.bookshelf.Common.Enum.FileStorageMediumEnum;
@Data
public class FileObjectModel {
// 文件存储介质Id