package com.gxwebsoft.common.system.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

/**
 * 微信公众号模板消息对象
 *
 * @author WebSoft
 * @since 2018-12-24 16:10:54
 */
@Data
@Schema(description = "模板消息内容")
public class TemplateMessageDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @Schema(description = "消息实参")
    @TableField(exist = false)
    private String value;

    @Schema(description = "消息颜色")
    private String color;

  public TemplateMessageDTO(String value) {
    this.value = value;
  }
  public TemplateMessageDTO(String value, String color) {
    this.value = value;
    this.color = color;
  }
}
