package com.ruoyi.production.bean.vo;
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
import lombok.Data;
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
import java.time.LocalDateTime;
|
import java.util.List;
|
|
@Data
|
@Schema(name = "ProductionTeamVo", description = "生产班组响应数据")
|
public class ProductionTeamVo {
|
|
@Schema(description = "班组ID")
|
private Long id;
|
|
@Schema(description = "班组名称")
|
private String teamName;
|
|
@Schema(description = "班组长ID")
|
private Long leaderId;
|
|
@Schema(description = "班组长姓名")
|
private String leaderName;
|
|
@Schema(description = "班组成员列表")
|
private List<MemberVo> members;
|
|
@Schema(description = "创建日期")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
private LocalDateTime createTime;
|
|
@Schema(description = "备注")
|
private String remark;
|
|
@Data
|
@Schema(name = "MemberVo", description = "班组成员信息")
|
public static class MemberVo {
|
@Schema(description = "用户ID")
|
private Long userId;
|
|
@Schema(description = "用户昵称")
|
private String nickName;
|
|
@Schema(description = "是否为班组长")
|
private Boolean isLeader;
|
}
|
}
|