package com.cyksj.model.request.corp.link;

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

import java.io.Serializable;

/**
 * @author chan
 * @date 2023/11/10 10:37
 */
@NoArgsConstructor
@Data
public class WxCpLinkAddResp implements Serializable {

    /**
     * {
     *     "errcode": 0,
     *     "errmsg": "ok",
     * 	"link":{
     * 		"link_id":"LINK_ID",
     * 		"link_name":"获客链接1号",
     * 		"url":"URL",
     * 		"create_time":1667232000
     *        }
     * }
     */
    private static final long serialVersionUID = 3565729481246537411L;

    @JsonProperty("errcode")
    protected Long errcode;

    @JsonProperty("errmsg")
    protected String errmsg;

    @JsonProperty("link")
    private Link link;

    @Data
    public static class Link{
        @JsonProperty("link_id")
        private String linkId;

        @JsonProperty("link_name")
        private String linkName;

        private String url;
        @JsonProperty("create_time")
        private Long createTime;
    }
}
