package com.njzscloud.supervisory.gps.tuqiang.jimi.support;

import cn.hutool.core.date.DateUtil;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

@Getter
@Setter
@ToString
@Accessors(chain = true)
public abstract class JimiParam<T> {
    private String method;
    private String timestamp;
    private String app_key;
    private String sign;
    private String sign_method;
    private String v;
    private String format;
    private String access_token;

    public JimiParam(String method) {
        this.method = method;
        this.timestamp = DateUtil.now();
        this.sign_method = "md5";
        this.v = "1.0";
        this.format = "json";
    }

    public abstract Class<T> resultType();

}
