/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.martial.pojo.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 赛事规程视图对象
 *
 * @author BladeX
 */
@Data
@Schema(description = "赛事规程")
public class MartialCompetitionRulesVO implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 赛事ID
	 */
	@Schema(description = "赛事ID")
	private Long competitionId;

	/**
	 * 赛事名称
	 */
	@Schema(description = "赛事名称")
	private String competitionName;

	/**
	 * 附件列表
	 */
	@Schema(description = "附件列表")
	private List<AttachmentVO> attachments;

	/**
	 * 章节列表
	 */
	@Schema(description = "章节列表")
	private List<ChapterVO> chapters;

	/**
	 * 附件视图对象
	 */
	@Data
	@Schema(description = "附件信息")
	public static class AttachmentVO implements Serializable {
		private static final long serialVersionUID = 1L;

		@Schema(description = "附件ID")
		private Long id;

		@Schema(description = "文件名称")
		private String name;

		@Schema(description = "文件名称（别名）")
		private String fileName;

		@Schema(description = "文件URL")
		private String url;

		@Schema(description = "文件URL（别名）")
		private String fileUrl;

		@Schema(description = "文件大小（字节）")
		private Long size;

		@Schema(description = "文件大小（别名）")
		private Long fileSize;

		@Schema(description = "文件类型")
		private String fileType;

		@Schema(description = "上传时间")
		private String uploadTime;
	}

	/**
	 * 章节视图对象
	 */
	@Data
	@Schema(description = "章节信息")
	public static class ChapterVO implements Serializable {
		private static final long serialVersionUID = 1L;

		@Schema(description = "章节ID")
		private Long id;

		@Schema(description = "章节编号")
		private String chapterNumber;

		@Schema(description = "章节编号（别名）")
		private String number;

		@Schema(description = "章节标题")
		private String title;

		@Schema(description = "章节标题（别名）")
		private String name;

		@Schema(description = "排序序号")
		private Integer order;

		@Schema(description = "章节内容列表")
		private List<String> contents;

		@Schema(description = "章节内容列表（别名）")
		private List<String> items;
	}

}
