package com.macro.mall.dto;

import io.swagger.annotations.ApiModelProperty;

/**
 * 获取OSS上传文件授权返回结果
 * Created by macro on 2018/5/17.
 */
public class OssPolicyResult {
    @ApiModelProperty("访问身份验证中用到用户标识")
    private String accessKeyId;
    @ApiModelProperty("用户表单上传的策略,经过base64编码过的字符串")
    private String policy;
    @ApiModelProperty("对policy签名后的字符串")
    private String signature;
    @ApiModelProperty("上传文件夹路径前缀")
    private String dir;
    @ApiModelProperty("oss对外服务的访问域名")
    private String host;
    @ApiModelProperty("上传成功后的回调设置")
    private String callback;

    public String getAccessKeyId() {
        return accessKeyId;
    }

    public void setAccessKeyId(String accessKeyId) {
        this.accessKeyId = accessKeyId;
    }

    public String getPolicy() {
        return policy;
    }

    public void setPolicy(String policy) {
        this.policy = policy;
    }

    public String getSignature() {
        return signature;
    }

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

    public String getDir() {
        return dir;
    }

    public void setDir(String dir) {
        this.dir = dir;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public String getCallback() {
        return callback;
    }

    public void setCallback(String callback) {
        this.callback = callback;
    }
}

@@ -69,16 +69,69 @@
 roperty;
+%0Aimport lombok.Data;%0Aimport lombok.EqualsAndHashCode;
 %0A%0A/**%0A *
@@ -185,16 +185,60 @@
 17.%0A */%0A
+@Data%0A@EqualsAndHashCode(callSuper = false)%0A
 public c
@@ -637,16 +637,16 @@
 %E7%9A%84%E5%9B%9E%E8%B0%83%E8%AE%BE%E7%BD%AE%22)%0A
+
     priv
@@ -669,889 +669,7 @@
 ack;
-%0A%0A    public String getAccessKeyId() %7B%0A        return accessKeyId;%0A    %7D%0A%0A    public void setAccessKeyId(String accessKeyId) %7B%0A        this.accessKeyId = accessKeyId;%0A    %7D%0A%0A    public String getPolicy() %7B%0A        return policy;%0A    %7D%0A%0A    public void setPolicy(String policy) %7B%0A        this.policy = policy;%0A    %7D%0A%0A    public String getSignature() %7B%0A        return signature;%0A    %7D%0A%0A    public void setSignature(String signature) %7B%0A        this.signature = signature;%0A    %7D%0A%0A    public String getDir() %7B%0A        return dir;%0A    %7D%0A%0A    public void setDir(String dir) %7B%0A        this.dir = dir;%0A    %7D%0A%0A    public String getHost() %7B%0A        return host;%0A    %7D%0A%0A    public void setHost(String host) %7B%0A        this.host = host;%0A    %7D%0A%0A    public String getCallback() %7B%0A        return callback;%0A    %7D%0A%0A    public void setCallback(String callback) %7B%0A        this.callback = callback;%0A    %7D
 %0A%7D%0A

Update OssPolicyResult.java