package com.seer.teach.mp.app.controller.resp;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * JS-SDK签名响应参数
 */
@Data
@Schema(description = "JS-SDK签名响应参数")
public class JsapiSignatureResp {

    @Schema(description = "生成签名的时间戳")
    private Long timestamp;

    @Schema(description = "生成签名的随机串")
    private String nonceStr;

    @Schema(description = "签名")
    private String signature;

    @Schema(description = "公众号的唯一标识")
    private String appId;

    public JsapiSignatureResp() {
    }

    public JsapiSignatureResp(Long timestamp, String nonceStr, String signature, String appId) {
        this.timestamp = timestamp;
        this.nonceStr = nonceStr;
        this.signature = signature;
        this.appId = appId;
    }
}