| | |
| | | */ |
| | | private Short status; |
| | | |
| | | public Api() {} |
| | | public Api() { |
| | | } |
| | | |
| | | public Api(String namespace,Short oauth,String request,String response,Date createTime,Date updateTime,Short status) { |
| | | public Api(String namespace, Short oauth, String request, String response, Date createTime, Date updateTime, Short status) { |
| | | this.namespace = namespace; // 命名空间[非空] |
| | | this.oauth = oauth; // 授权[非空] |
| | | this.request = request; // 请求结构 |
| | |
| | | return oauth; |
| | | } |
| | | |
| | | public String getOauth$(){ |
| | | if (null == this.oauth){ return null; } |
| | | switch (this.oauth){ |
| | | public void setOauth(Short oauth) { |
| | | this.oauth = oauth; |
| | | } |
| | | |
| | | public String getOauth$() { |
| | | if (null == this.oauth) { |
| | | return null; |
| | | } |
| | | switch (this.oauth) { |
| | | case 0: |
| | | return "无需授权"; |
| | | case 1: |
| | |
| | | default: |
| | | return String.valueOf(this.oauth); |
| | | } |
| | | } |
| | | |
| | | public void setOauth(Short oauth) { |
| | | this.oauth = oauth; |
| | | } |
| | | |
| | | public String getRequest() { |
| | |
| | | return createTime; |
| | | } |
| | | |
| | | public String getCreateTime$(){ |
| | | if (Cools.isEmpty(this.createTime)){ |
| | | public void setCreateTime(Date createTime) { |
| | | this.createTime = createTime; |
| | | } |
| | | |
| | | public String getCreateTime$() { |
| | | if (Cools.isEmpty(this.createTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime); |
| | | } |
| | | |
| | | public void setCreateTime(Date createTime) { |
| | | this.createTime = createTime; |
| | | } |
| | | |
| | | public Date getUpdateTime() { |
| | | return updateTime; |
| | | } |
| | | |
| | | public String getUpdateTime$(){ |
| | | if (Cools.isEmpty(this.updateTime)){ |
| | | public void setUpdateTime(Date updateTime) { |
| | | this.updateTime = updateTime; |
| | | } |
| | | |
| | | public String getUpdateTime$() { |
| | | if (Cools.isEmpty(this.updateTime)) { |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime); |
| | | } |
| | | |
| | | public void setUpdateTime(Date updateTime) { |
| | | this.updateTime = updateTime; |
| | | } |
| | | |
| | | public Short getStatus() { |
| | | return status; |
| | | } |
| | | |
| | | public String getStatus$(){ |
| | | if (null == this.status){ return null; } |
| | | switch (this.status){ |
| | | public void setStatus(Short status) { |
| | | this.status = status; |
| | | } |
| | | |
| | | public String getStatus$() { |
| | | if (null == this.status) { |
| | | return null; |
| | | } |
| | | switch (this.status) { |
| | | case 1: |
| | | return "有效"; |
| | | case 0: |
| | |
| | | default: |
| | | return String.valueOf(this.status); |
| | | } |
| | | } |
| | | |
| | | public void setStatus(Short status) { |
| | | this.status = status; |
| | | } |
| | | |
| | | |