package cn.axzo.msg.center.domain.entity;

import cn.axzo.msg.center.domain.persistence.BaseEntityExt;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * @author yanglin
 */
@Setter
@Getter
@Accessors(chain = true)
@TableName(value = "card_idempotent", autoResultMap = true)
public class CardIdempotent extends BaseEntityExt<CardIdempotent> {

    /**
     * 调用方标识
     */
    private String appCode;

    /**
     * 卡片模版编码
     */
    private String templateCode;

    /**
     * 用于幂等的编码
     */
    private String idempotentCode;

    @Override
    public String toString() {
        return String.format("{appCode=%s, templateCode=%s, idempotentCode=%s}",
                appCode, templateCode, idempotentCode);
    }
}