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;

/**
 * 类的介绍：
 *
 * @author xuyang
 * @version 1.0.0
 * @createTime 2022/3/11 14:36
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class RegisterDTO extends PublicParamDTO implements Serializable {

    /**
     * 请求参数
     */
    @Data
    @EqualsAndHashCode(callSuper = true)
    public static class RegisterRequest extends RegisterDTO implements Serializable{

        @SerializedName("expire")
        private Integer expire;

        @SerializedName("param")
        private RegisterParamDTO.RegisterParamRequest param;
    }

    /**
     * 应答参数
     */
    @Data
    @EqualsAndHashCode(callSuper = true)
    public static class RegisterResponse extends RegisterDTO implements Serializable{

        @SerializedName("code")
        private Integer code;

        @SerializedName("msg")
        private String msg;

        @SerializedName("param")
        private RegisterParamDTO.RegisterParamResponse param;
    }

}
