FeiShuCreateTaskDTO.java
1.34 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
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/6/5 20:17
*/
@NoArgsConstructor
@Data
public class FeiShuCreateTaskDTO {
@JSONField(name = "summary")
private String summary;
@JSONField(name = "description")
private String description;
@JSONField(name = "origin")
private OriginDTO origin;
@JSONField(name = "can_edit")
private Boolean canEdit;
@JSONField(name = "due")
private Due due;
@JSONField(name = "follower_ids")
private List<String> followerIds;
@JSONField(name = "collaborator_ids")
private List<String> collaboratorIds;
@NoArgsConstructor
@Data
public static class OriginDTO {
@JSONField(name = "platform_i18n_name")
private String platformI18nName;
@JSONField(name = "href")
private HrefDTO href;
@NoArgsConstructor
@Data
public static class HrefDTO {
@JSONField(name = "url")
private String url;
@JSONField(name = "title")
private String title;
}
}
@NoArgsConstructor
@Data
public static class Due{
@JSONField(name = "time")
private String time;
}
}