package cn.axzo.msg.center.service.card.response;

import cn.axzo.msg.center.service.pending.card.domain.CardElementConfig;
import com.alibaba.fastjson.JSON;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

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

/**
 * @author xudawei@axzo.cn
 * @date 2024/12/10
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class CardStyleDetailResponse implements Serializable {

    private static final long serialVersionUID = 6772912658753264863L;

    /**
     * 样式名称
     */
    private String name;

    /**
     * 样式code, 唯一
     */
    private String code;

    /**
     * 预览大图
     */
    private List<String> previewImages;

    /**
     * 卡片元素配置
     */
    private List<CardElementConfig> elementConfigs;

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
