ClientLabelDTO.java
2.48 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
90
91
92
93
94
95
96
97
98
99
100
101
102
package com.infoloop.tianting.model.dto;
import com.infoloop.tianting.clientcustomerorderservice.OrderSourceEnum;
import com.infoloop.tianting.deliveryruleservice.ClientDishLabelStatusEnum;
import com.infoloop.tianting.deliveryruleservice.ClientLabelTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.models.auth.In;
import java.util.List;
import lombok.Builder;
import lombok.Data;
import lombok.ToString;
@Data
@ApiModel(description = "标签DTO")
public class ClientLabelDTO {
@Data
@Builder
@ApiModel(description = "标签详情dto")
public static class LabelDto {
private Integer id;
private Integer enterpriseId;
private String code;
private String name;
ClientLabelTypeEnum type;
private boolean isDefault;
private String remark;
ClientDishLabelStatusEnum status;
}
@Data
@Builder
@ToString
@ApiModel(description = "查询标签 DTO")
public static class QueryLabelsDto {
private Integer enterpriseId;
private ClientLabelTypeEnum type;
}
@Data
@Builder
@ToString
@ApiModel(description = "用户与标签ref DTO")
public static class CustomerLabelRefDto {
private Integer customerId;
private Integer labelId;
}
@Data
@Builder
@ToString
@ApiModel(description = "批量创建用户标签 DTO")
public static class BatchCreateCustomerLabelRefDto {
private List<CustomerLabelRefDto> creations;
private Integer enterpriseId;
private Integer createdBy;
private OrderSourceEnum creationSource;
}
@Data
@Builder
@ToString
@ApiModel(description = "批量创建用户标签响应 DTO")
public static class BatchCreateCustomerLabelRefResponseDto {
private List<Integer> ids;
private boolean isCreated;
}
@Data
@Builder
@ToString
@ApiModel(description = "用户与标签ref detail DTO")
public static class CustomerLabelRefDetailDto {
private Integer id;
private Integer enterpriseId;
private Integer labelId;
private Integer customerId;
private Integer createdBy;
private String createdAt;
private Integer creationSource;
}
@Data
@Builder
@ToString
@ApiModel(description = "批量删除用户标签请求 DTO")
public static class BatchDeleteCustomerLabelRefRequestDto {
private List<Integer> ids;
private Integer enterpriseId;
}
@Data
@Builder
@ToString
@ApiModel(description = "批量删除用户标签请求 DTO")
public static class BatchDeleteCustomerLabelRefResponseDto {
private boolean isDeleted;
}
}