package com.njcn.energy.pojo.dto;


import com.alibaba.nacos.shaded.com.google.gson.annotations.SerializedName;
import lombok.Data;
import lombok.EqualsAndHashCode;

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

;

/**
 * 类的介绍：
 *
 * @author xuyang
 * @version 1.0.0
 * @createTime 2022/3/11 14:58
 */
@Data
public class RegisterParamDTO implements Serializable {

    @SerializedName("NDID")
    private String nDid;

    @SerializedName("DID")
    private List<String> did;

    /**
     * 请求参数
     */
    @Data
    @EqualsAndHashCode(callSuper = true)
    public static class RegisterParamRequest extends RegisterParamDTO implements Serializable{
        @SerializedName("type")
        private Integer type;
    }

    /**
     * 应答参数
     */
    @Data
    @EqualsAndHashCode(callSuper = true)
    public static class RegisterParamResponse extends RegisterParamDTO implements Serializable{
        @SerializedName("res")
        private Integer res;

        @SerializedName("type")
        private Integer resType;

    }

}
