SysOpenAccessDTO.java 3.8 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183
package cn.ibizlab.api.dto;

import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.math.BigInteger;
import java.util.Map;
import java.util.HashMap;
import java.io.Serializable;
import java.math.BigDecimal;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.alibaba.fastjson.annotation.JSONField;
import cn.ibizlab.util.domain.DTOBase;
import cn.ibizlab.util.domain.DTOClient;
import lombok.Data;

/**
 * 服务DTO对象[SysOpenAccessDTO]
 */
@Data
public class SysOpenAccessDTO extends DTOBase implements Serializable {

	private static final long serialVersionUID = 1L;

    /**
     * 属性 [ACCESSID]
     *
     */
    @JSONField(name = "id")
    @JsonProperty("id")
    private String id;

    /**
     * 属性 [ACCESSNAME]
     *
     */
    @JSONField(name = "name")
    @JsonProperty("name")
    private String name;

    /**
     * 属性 [OPEN_TYPE]
     *
     */
    @JSONField(name = "open_type")
    @JsonProperty("open_type")
    private String openType;

    /**
     * 属性 [ACCESS_KEY]
     *
     */
    @JSONField(name = "access_key")
    @JsonProperty("access_key")
    private String accessKey;

    /**
     * 属性 [SECRET_KEY]
     *
     */
    @JSONField(name = "secret_key")
    @JsonProperty("secret_key")
    private String secretKey;

    /**
     * 属性 [REGION_ID]
     *
     */
    @JSONField(name = "region_id")
    @JsonProperty("region_id")
    private String regionId;

    /**
     * 属性 [ACCESS_TOKEN]
     *
     */
    @JSONField(name = "access_token")
    @JsonProperty("access_token")
    private String accessToken;

    /**
     * 属性 [EXPIRES_TIME]
     *
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
    @JSONField(name = "expires_time" , format="yyyy-MM-dd HH:mm:ss")
    @JsonProperty("expires_time")
    private Timestamp expiresTime;

    /**
     * 属性 [DISABLED]
     *
     */
    @JSONField(name = "disabled")
    @JsonProperty("disabled")
    private Integer disabled;

    /**
     * 属性 [REDIRECT_URI]
     *
     */
    @JSONField(name = "redirect_uri")
    @JsonProperty("redirect_uri")
    private String redirectUri;


    /**
     * 设置 [ACCESSNAME]
     */
    public void setName(String  name){
        this.name = name ;
        this.modify("accessname",name);
    }

    /**
     * 设置 [OPEN_TYPE]
     */
    public void setOpenType(String  openType){
        this.openType = openType ;
        this.modify("open_type",openType);
    }

    /**
     * 设置 [ACCESS_KEY]
     */
    public void setAccessKey(String  accessKey){
        this.accessKey = accessKey ;
        this.modify("access_key",accessKey);
    }

    /**
     * 设置 [SECRET_KEY]
     */
    public void setSecretKey(String  secretKey){
        this.secretKey = secretKey ;
        this.modify("secret_key",secretKey);
    }

    /**
     * 设置 [REGION_ID]
     */
    public void setRegionId(String  regionId){
        this.regionId = regionId ;
        this.modify("region_id",regionId);
    }

    /**
     * 设置 [ACCESS_TOKEN]
     */
    public void setAccessToken(String  accessToken){
        this.accessToken = accessToken ;
        this.modify("access_token",accessToken);
    }

    /**
     * 设置 [EXPIRES_TIME]
     */
    public void setExpiresTime(Timestamp  expiresTime){
        this.expiresTime = expiresTime ;
        this.modify("expires_time",expiresTime);
    }

    /**
     * 设置 [DISABLED]
     */
    public void setDisabled(Integer  disabled){
        this.disabled = disabled ;
        this.modify("disabled",disabled);
    }

    /**
     * 设置 [REDIRECT_URI]
     */
    public void setRedirectUri(String  redirectUri){
        this.redirectUri = redirectUri ;
        this.modify("redirect_uri",redirectUri);
    }


}