From c4981fa8aa11b6509a5fb21f11ebe01c868a666a Mon Sep 17 00:00:00 2001 From: zhangc <zc@123> Date: 星期六, 15 三月 2025 11:01:22 +0800 Subject: [PATCH] 配置信息 --- src/main/java/com/zy/system/entity/Api.java | 61 ++++++++++++++++-------------- 1 files changed, 33 insertions(+), 28 deletions(-) diff --git a/src/main/java/com/zy/system/entity/Api.java b/src/main/java/com/zy/system/entity/Api.java index 9342543..e851941 100644 --- a/src/main/java/com/zy/system/entity/Api.java +++ b/src/main/java/com/zy/system/entity/Api.java @@ -58,9 +58,10 @@ */ 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; // 璇锋眰缁撴瀯 @@ -90,9 +91,15 @@ 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: @@ -100,10 +107,6 @@ default: return String.valueOf(this.oauth); } - } - - public void setOauth(Short oauth) { - this.oauth = oauth; } public String getRequest() { @@ -126,39 +129,45 @@ 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: @@ -166,10 +175,6 @@ default: return String.valueOf(this.status); } - } - - public void setStatus(Short status) { - this.status = status; } -- Gitblit v1.9.1