package com.cyksj.model.response.corp;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

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

/**
 * @author chan
 * @date 2022/3/16 下午2:42
 */
@Data
public class CorpMsgSendResult implements Serializable {

    private Integer errCode;

    private String errMsg;

    @JsonProperty("next_cursor")
    private String nextCursor;

    @JsonProperty("send_list")
    private List<SendResult> sendList;

    @Data
    public static class SendResult{
        @JsonProperty("external_userid")
        private String externalUserid;

        private String userid;

        /**
         * 发送状态：0-未发送 1-已发送 2-因客户不是好友导致发送失败 3-因客户已经收到其他群发消息导致发送失败
         */
        private Integer status;

        @JsonProperty("send_time")
        private Long sendTime = 1L;
    }

}
