package org.springblade.gateway.common_gateway.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @Author: Silent
 * @Description
 * @Date: Created in 10:16 2021/11/10
 * @Modified By:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ApiModel("页面设置")
public class PageSettingDto {
	@ApiModelProperty("主页标题")
	private String indexTitle;

	@ApiModelProperty("主页轮播图")
	private List<ImageItem> indexImageList;

	@ApiModelProperty("授权标题")
	private String cmccAuthTitle;

	@ApiModelProperty("授权内容")
	private String cmccAuthContent;

	@ApiModel("轮播图选项")
	@Data
	@AllArgsConstructor
	@NoArgsConstructor
	public static class ImageItem{
		@ApiModelProperty("图片地址")
		private String url;

		@ApiModelProperty("类型")
		private String type;

		@ApiModelProperty("需要跳转的地址")
		private String path;
	}
}
