package com.codvision.auth.entity.ding.gov.msg;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author hxl
 */
@Data
@NoArgsConstructor
public class DingMarkDownMsg {

    private String msgtype = "markdown";
    private MarkDownMsg markdown;

    public DingMarkDownMsg(MarkDownMsg markdown) {
        this.markdown = markdown;
    }

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class MarkDownMsg {
        // 标题
        private String title;
        // markdown的文本
        private String text;
    }
}
