package org.springblade.modules.martial.pojo.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.modules.martial.pojo.entity.MartialTeam;

import java.util.List;

@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "集体视图对象")
public class MartialTeamVO extends MartialTeam {

	private static final long serialVersionUID = 1L;

	@Schema(description = "成员列表")
	private List<MemberInfo> members;

	@Data
	@Schema(description = "成员信息")
	public static class MemberInfo {
		@Schema(description = "选手ID")
		private Long id;

		@Schema(description = "选手姓名")
		private String name;

		@Schema(description = "身份证号")
		private String idCard;

		@Schema(description = "性别: 1-男, 2-女")
		private Integer gender;
	}

}
