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;

import java.math.BigDecimal;
import java.util.List;

@Data
@JsonTypeName("CHARGING_PILE_PURCHASE_CONFIG")
@Schema(title = "充电桩设备购买配置")
@EqualsAndHashCode(callSuper = true)
public class ChargingPilePurchaseConfig extends DTO implements SettingValue {

	/**
	 * 标题
	 */
	@Schema(title = "标题", requiredMode = Schema.RequiredMode.REQUIRED)
	private String title;

	/**
	 * 描述
	 */
	@Schema(title = "描述", requiredMode = Schema.RequiredMode.REQUIRED)
	private String description;

	/**
	 * 购买价格
	 */
	@Schema(title = "购买价格", requiredMode = Schema.RequiredMode.REQUIRED)
	private BigDecimal price;

	/**
	 * 划线价格
	 */
	@Schema(title = "划线价格", requiredMode = Schema.RequiredMode.REQUIRED)
	private BigDecimal linePrice;

	/**
	 * 图片
	 */
	@Schema(title = "图片", requiredMode = Schema.RequiredMode.REQUIRED)
	private List<String> image;

	/**
	 * 设备内容
	 */
	@Schema(title = "设备内容", requiredMode = Schema.RequiredMode.REQUIRED)
	private String content;

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