RequestEntity.java 1.48 KB
Newer Older
xucl committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
package com.fadu.model.xinbao;

import com.alibaba.fastjson.annotation.JSONType;


import java.io.Serializable;

/**
 * <p>
 * <b>RequestEntity</b> is
 * </p>
 *
 * @author Kazyle
 * @version 1.0.0
 * @since 2017/10/12
 */
@JSONType(ignores = {"data"})
public class RequestEntity<T> implements Serializable {

    private String nonce;

    private long timestamp;

    private String signature;

    private T data;

    //加密
    private String encrypt;

    public String getNonce() {
        return nonce;
    }

    public void setNonce(String nonce) {
        this.nonce = nonce;
    }

    public long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }

    public String getSignature() {
        return signature;
    }

    public void setSignature(String signature) {
        this.signature = signature;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public String getEncrypt() {
        return encrypt;
    }

    public void setEncrypt(String encrypt) {
        this.encrypt = encrypt;
    }

    @Override
    public String toString() {
        return "RequestEntity{" +
                "nonce='" + nonce + '\'' +
                ", timestamp=" + timestamp +
                ", signature='" + signature + '\'' +
                ", data=" + data +
                ", encrypt='" + encrypt + '\'' +
                '}';
    }
}