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

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

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

    private String msgtype = "link";
    private LinkMsg link;
    public DingLinkMsg(LinkMsg link) {
        this.link = link;
    }

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class LinkMsg {
        // 消息点击链接地址，当发送消息为小程序时支持小程序跳转链接
        private String messageUrl;
        // 图片地址
        private String picUrl;
        // 消息标题
        private String title;
        // 消息描述
        private String text;
    }
}
