wangrong
2021-11-24 130b72d6c5734f8acaac0214b6dfe5c8bfa319c3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
package com.example.demo.model.blog;
 
import xyz.erupt.annotation.Erupt;
import xyz.erupt.annotation.EruptField;
import xyz.erupt.annotation.sub_field.Edit;
import xyz.erupt.annotation.sub_field.View;
import xyz.erupt.annotation.sub_field.ViewType;
import xyz.erupt.jpa.model.BaseModel;
 
import javax.persistence.Entity;
import javax.persistence.Table;
 
/**
 * @author YuePeng
 * date 2020/12/15 12:11
 */
@Erupt(
        name = "友情链接",
        orderBy = "sort"
)
@Table(name = "blog_link")
@Entity
public class FriendlyLink extends BaseModel {
 
    @EruptField(
            views = @View(title = "友链名"),
            edit = @Edit(title = "友链名", notNull = true)
    )
    private String name;
 
    @EruptField(
            views = @View(title = "友链简介"),
            edit = @Edit(title = "友链简介", notNull = true)
    )
    private String remark;
 
    @EruptField(
            views = @View(title = "友链URL", type = ViewType.LINK_DIALOG),
            edit = @Edit(title = "友链URL", notNull = true)
    )
    private String url;
 
    @EruptField(
            views = @View(title = "站长邮箱"),
            edit = @Edit(title = "站长邮箱")
    )
    private String email;
 
    @EruptField(
            views = @View(title = "排序"),
            edit = @Edit(title = "排序")
    )
    private Integer sort;
 
}