package com.cool.store.vo.oss;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author zhangchenbiao
 * @FileName: OssUploadConfigVO
 * @Description: oss 上传config
 * @date 2023-06-01 13:46
 */
@Data
public class OssUploadConfigVO {

    @ApiModelProperty("域名")
    private String accessKeyId;

    @ApiModelProperty("策略 Base64编过")
    private String policy;

    @ApiModelProperty("对Policy签名后的字符串")
    private String signature;

    @ApiModelProperty("上传目录")
    private String dir;

    @ApiModelProperty("域名")
    private String host;

    @ApiModelProperty("上传策略Policy失效时间")
    private String expire;

    @ApiModelProperty("cdn地址")
    private String cdnUrl;

    public OssUploadConfigVO(String accessKeyId, String policy, String signature, String dir, String host, String expire, String cdnUrl) {
        this.accessKeyId = accessKeyId;
        this.policy = policy;
        this.signature = signature;
        this.dir = dir;
        this.host = host;
        this.expire = expire;
        this.cdnUrl = cdnUrl;
    }

}
