怎么回事。
标题1
标题2
标题3
标题4
标题5
标题6
- a
- b
- c
- d
- e
- f
- g
- h
- i
无序
- a
- a1
- a2
- ba
- c
有序
- a
- adac
- adaw
- adfsda
- ad
- sad
引用
adsadfafadfae aef ae
a ef a fae q3ef
嵌套引用
awd aw
a
引用
引用1
引用1 引用1
嵌套引用
嵌套引用1
嵌套引用1
代码块
adaawf
多行代码块儿
adaawfwrfwr
//链接
百度1
分割线
表格
123 | 234 | 345 |
---|---|---|
abc | bcd | cde |
abc | bcd | cde |
abc | bcd | cde |
abc | bcd | cde |
abc | bcd | cde |
//例子二 | ||
123 | 234 | 345 |
:— | :—: | —: |
abc | bcd | cde |
abc | bcd | cde |
abc | bcd | cde |
//例子三 | ||
123 | 234 | 345 |
:- | :-: | -: |
abc | bcd | cde |
abc | bcd | cde |
abc | bcd | cde |
- 复选框
- 选中状态
//斜体
md
//粗体
md
//斜体
md
//斜体
md
//转义
+
//删除线
删除
package cn.devpress.foss.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.my
# 标题1 #
## 标题2 ##
### 标题3 ###
#### 标题4 ####
##### 标题5 #####
###### 标题6 #######
+ a
+ b
+ c
- d
- e
- f
* g
* h
* i
无序
+ a
+ a1
+ a2
+ ba
+ c
有序
1. a
1. adac
1. adaw
2. adfsda
2. ad
3. sad
引用
> adsadfafadfae aef ae
a ef a fae q3ef
嵌套引用
> awd aw
>> a
引用
> 引用1
引用1 引用1
嵌套引用
> 嵌套引用1
>> 嵌套引用1
代码块
`
adaawf
`
多行代码块儿
adaawfwrfwr
//链接
[百度1](www.baidu.com)

分割线
---
- - -
-------
*****
* * *
____
表格
|123|234|345|
|:-|:-:|-:|
|abc|bcd|cde|
|abc|bcd|cde|
|abc|bcd|cde|
|abc|bcd|cde|
|abc|bcd|cde|
//例子二
|123|234|345|
|:---|:---:|---:|
|abc|bcd|cde|
|abc|bcd|cde|
|abc|bcd|cde|
//例子三
123|234|345
:-|:-:|-:
abc|bcd|cde
abc|bcd|cde
abc|bcd|cde
- [ ] 复选框
- [x] 选中状态
//斜体
*md*
//粗体
**md**
//斜体
_md_
//斜体
__md__
//转义
\+
//删除线
~~删除~~
batisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.google.common.collect.Lists;
import lombok.*;
import org.apache.commons.lang3.StringUtils;
import java.util.Date;
import java.util.List;
import java.util.Objects;
import java.util.stream.Stream;
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName(value = "dp_namespace_article")
public class NamespaceArticle{
public static final String FIELD_ID = "id";
public static final String FIELD_USER_ID = "user_id";
public static final String FIELD_NS_ID = "ns_id";
public static final String FIELD_IS_DELETE = "is_delete";
public static final String FIELD_STATUS = "status";
public static final String FIELD_AUDIT_STATUS = "audit_status";
public static final String FIELD_TYPE = "type";
public static final String FIELD_TOP = "top";
public static final String FIELD_TOP_TIME = "top_time";
public static final String FIELD_PASS_TIME = "pass_time";
public static final String FIELD_MEDIA_ID = "media_aid";
public static final String FIELD_CREATED_AT = "created_at";
public static final String FIELD_TITLE = "title";
public static final String FIELD_DIGG_COUNT = "digg_count";
public static final String FIELD_ROBOTAUDITSTATUS="robot_audit_status";
public static final List<String> ORDER_FIELDS = Lists.newArrayList(FIELD_CREATED_AT, FIELD_ID, FIELD_PASS_TIME);
@TableId(value = "`id`", type = IdType.AUTO)
private Long id;
@TableField(value = "media_aid")
private String mediaAid;
@TableField(value = "ns_id")
private Long nsId;
@TableField(value = "user_id")
private Long userId;
/**
* 类型 0 原创 1 投稿
*/
@TableField(value = "type")
private Integer type;
@TableField(value = "source_id")
private String sourceId;
/**
* 来源类型 0.本地发布;1.导入
*/
@TableField(value = "source_type")
private Integer sourceType = 0;
@TableField(value = "from_ns_id")
private Long fromNsId;
@TableField(value = "audit_status")
private Integer auditStatus;
@TableField(value = "robot_audit_status")
private Integer robotAuditStatus;
@TableField(value = "digg_count")
private Long diggCount;
@TableField(value = "no_digg_count")
private Long noDiggCount;
@TableField(value = "reply_count")
private Long replyCount;
@TableField(value = "view_count")
private Long viewCount;
@TableField(value = "favorite_count")
private Long favoriteCount;
@TableField(value = "status")
private Integer status;
@TableField(value = "top")
private Integer top;
@TableField(value = "top_time")
private Date topTime;
@TableField(value = "pass_time")
private Date passTime;
@TableField(value = "created_at")
private Date createdAt;
@TableField(value = "updated_at")
private Date updatedAt;
/**
* 冗余存储(实现title搜索)
*/
@TableField(value = "title")
private String title;
@TableField(value = "is_delete")
private Integer isDelete; //逻辑删除
@Getter
@AllArgsConstructor
public enum AuditStatus {
PENDING_REVIEW(0, "待审核"), APPROVED(1, "通过"), REFUSE(-1, "拒绝");
public Integer value;
public String desc;
public static AuditStatus ofValue(Integer value) {
for (AuditStatus item : AuditStatus.values()) {
if (item.value.equals(value)) {
return item;
}
}
throw new IllegalArgumentException("AuditStatus param error");
}
public static boolean isValidByName(String name) {
if (StringUtils.isBlank(name)) {
return false;
}
AuditStatus status = Stream.of(values()).filter(t -> t.name().equalsIgnoreCase(name)).findFirst().orElse(null);
return null != status;
}
}