package com.xunhong.erp.turbo.api.infra.dto.common;

import com.alibaba.cola.dto.DTO;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.xunhong.erp.turbo.api.infra.dto.enums.SettingKeyEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@JsonTypeName("CUSTOM_THEME_CONFIG")
@Schema(title = "自定义主题配置")
@EqualsAndHashCode(callSuper = true)
public class CustomThemeConfigValue extends DTO implements SettingValue {

	/**
	 * 主题名称
	 */
	@Schema(title = "主题名称", requiredMode = Schema.RequiredMode.REQUIRED)
	private String themeName;

	/**
	 * 主题颜色
	 */
	@Schema(title = "主题颜色", requiredMode = Schema.RequiredMode.REQUIRED)
	private String primaryColor;

	/**
	 * 次要颜色
	 */
	@Schema(title = "次要颜色", requiredMode = Schema.RequiredMode.REQUIRED)
	private String secondaryColor;

	@Override
	public SettingKeyEnum getSettingKey() {
		return SettingKeyEnum.CUSTOM_THEME_CONFIG;
	}
}
