mirror of
https://github.com/201206030/novel.git
synced 2025-04-27 07:30:50 +00:00
105 lines
2.0 KiB
Java
105 lines
2.0 KiB
Java
package com.java2nb.books.domain;
|
|
|
|
import java.io.Serializable;
|
|
|
|
|
|
|
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
|
import com.java2nb.common.jsonserializer.LongToStringSerializer;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
*
|
|
*
|
|
* @author xiongxy
|
|
* @email 1179705413@qq.com
|
|
* @date 2019-11-13 09:28:11
|
|
*/
|
|
public class BookContentDO implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
//
|
|
//java中的long能表示的范围比js中number大,也就意味着部分数值在js中存不下(变成不准确的值)
|
|
//所以通过序列化成字符串来解决
|
|
@JsonSerialize(using = LongToStringSerializer.class)
|
|
private Long id;
|
|
//
|
|
//java中的long能表示的范围比js中number大,也就意味着部分数值在js中存不下(变成不准确的值)
|
|
//所以通过序列化成字符串来解决
|
|
@JsonSerialize(using = LongToStringSerializer.class)
|
|
private Long bookId;
|
|
//
|
|
//java中的long能表示的范围比js中number大,也就意味着部分数值在js中存不下(变成不准确的值)
|
|
//所以通过序列化成字符串来解决
|
|
@JsonSerialize(using = LongToStringSerializer.class)
|
|
private Long indexId;
|
|
//
|
|
private Integer indexNum;
|
|
//
|
|
private String content;
|
|
|
|
/**
|
|
* 设置:
|
|
*/
|
|
public void setId(Long id) {
|
|
this.id = id;
|
|
}
|
|
/**
|
|
* 获取:
|
|
*/
|
|
public Long getId() {
|
|
return id;
|
|
}
|
|
/**
|
|
* 设置:
|
|
*/
|
|
public void setBookId(Long bookId) {
|
|
this.bookId = bookId;
|
|
}
|
|
/**
|
|
* 获取:
|
|
*/
|
|
public Long getBookId() {
|
|
return bookId;
|
|
}
|
|
/**
|
|
* 设置:
|
|
*/
|
|
public void setIndexId(Long indexId) {
|
|
this.indexId = indexId;
|
|
}
|
|
/**
|
|
* 获取:
|
|
*/
|
|
public Long getIndexId() {
|
|
return indexId;
|
|
}
|
|
/**
|
|
* 设置:
|
|
*/
|
|
public void setIndexNum(Integer indexNum) {
|
|
this.indexNum = indexNum;
|
|
}
|
|
/**
|
|
* 获取:
|
|
*/
|
|
public Integer getIndexNum() {
|
|
return indexNum;
|
|
}
|
|
/**
|
|
* 设置:
|
|
*/
|
|
public void setContent(String content) {
|
|
this.content = content;
|
|
}
|
|
/**
|
|
* 获取:
|
|
*/
|
|
public String getContent() {
|
|
return content;
|
|
}
|
|
}
|