|
|
@@ -0,0 +1,38 @@
|
|
|
+package com.izouma.wenlvju.dto;
|
|
|
+
|
|
|
+import cn.hutool.core.bean.BeanUtil;
|
|
|
+import com.alibaba.excel.annotation.ExcelProperty;
|
|
|
+import com.izouma.wenlvju.domain.performance.Participant;
|
|
|
+import io.swagger.annotations.ApiModel;
|
|
|
+import io.swagger.annotations.ApiModelProperty;
|
|
|
+import lombok.AllArgsConstructor;
|
|
|
+import lombok.Data;
|
|
|
+import lombok.NoArgsConstructor;
|
|
|
+
|
|
|
+import java.time.LocalDate;
|
|
|
+
|
|
|
+@Data
|
|
|
+@AllArgsConstructor
|
|
|
+@NoArgsConstructor
|
|
|
+@ApiModel(value = "参演人员")
|
|
|
+public class ParticipantDTO {
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "姓名")
|
|
|
+ private String name;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "性别")
|
|
|
+ private String sex;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "出生年月")
|
|
|
+ private LocalDate birthday;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "照片")
|
|
|
+ private String img;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "证书")
|
|
|
+ private String certificate;
|
|
|
+
|
|
|
+ public ParticipantDTO(Participant participant) {
|
|
|
+ BeanUtil.copyProperties(this, participant);
|
|
|
+ }
|
|
|
+}
|