package com.jeequan.jeepay.thirdparty.channel.lklspay.model;

import cn.hutool.core.date.DatePattern;
import cn.hutool.core.date.DateTime;
import cn.hutool.core.date.DateUtil;
import com.alibaba.fastjson.JSONObject;
import lombok.Data;

import java.text.DateFormat;
import java.util.UUID;

/**
 * TODO
 * 拉卡拉用户id相关操作
 * @author crystal
 * @date 2023/11/25 15:39
 */
@Data
public class LklMchReq {

    private String timestamp;

    private String rnd;

    private String ver;

    private String reqId;

    private JSONObject reqData;

    public LklMchReq(JSONObject reqData) {
        this.timestamp = System.currentTimeMillis() + "";
        this.rnd = UUID.randomUUID().toString().replace("-","");
        this.reqId = DateUtil.format(new DateTime(), DatePattern.PURE_DATETIME_MS_PATTERN);
        this.ver = "1.0.0";
        this.reqData = reqData;
    }
}
