FeiShuMsgCardDTO.java
2.31 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
package com.pipihelper.project.feishu.dto;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.List;
/**
* @description: some desc
* @author: charles
* @date: 2022/5/24 9:46 下午
*/
@Data
public class FeiShuMsgCardDTO {
@JSONField(name = "config")
private ConfigDTO config;
@JSONField(name = "header")
private HeaderDTO header;
@JSONField(name = "elements")
private List<ElementsDTO> elements;
@Data
public static class ConfigDTO {
@JSONField(name = "wide_screen_mode")
private Boolean wideScreenMode;
}
@Data
public static class HeaderDTO {
@JSONField(name = "title")
private TitleDTO title;
@JSONField(name = "template")
private String template;
@Data
public static class TitleDTO {
@JSONField(name = "tag")
private String tag;
@JSONField(name = "content")
private String content;
}
}
@Data
public static class ElementsDTO {
@JSONField(name = "tag")
private String tag;
@JSONField(name = "content")
private String content;
@JSONField(name = "actions")
private List<ActionsDTO> actions;
@Data
public static class ActionsDTO {
@JSONField(name = "tag")
private String tag;
@JSONField(name = "placeholder")
private PlaceholderDTO placeholder;
@JSONField(name = "options")
private List<OptionsDTO> options;
@Data
public static class PlaceholderDTO {
@JSONField(name = "tag")
private String tag;
@JSONField(name = "content")
private String content;
}
@Data
public static class OptionsDTO {
@JSONField(name = "text")
private TextDTO text;
@JSONField(name = "value")
private String value;
@Data
public static class TextDTO {
@JSONField(name = "tag")
private String tag;
@JSONField(name = "content")
private String content;
}
}
}
}
}