自动化立体仓库 - WMS系统
13
zhang
昨天 82de5a307466894bbb0258f8a63a26a7bb96d80d
src/main/java/com/zy/system/entity/Api.java
@@ -27,7 +27,7 @@
    private String namespace;
    /**
     * 授权 0: 无需授权  1: 需要授权
     * 授权 0: 无需授权  1: 需要授权
     */
    private Short oauth;
@@ -54,13 +54,14 @@
    private Date updateTime;
    /**
     * 状态 1: 有效  0: 禁用
     * 状态 1: 有效  0: 禁用
     */
    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,11 @@
        return oauth;
    }
    public String getOauth$(){
        if (null == this.oauth){ return null; }
        switch (this.oauth){
    public String getOauth$() {
        if (null == this.oauth) {
            return null;
        }
        switch (this.oauth) {
            case 0:
                return "无需授权";
            case 1:
@@ -126,8 +129,8 @@
        return createTime;
    }
    public String getCreateTime$(){
        if (Cools.isEmpty(this.createTime)){
    public String getCreateTime$() {
        if (Cools.isEmpty(this.createTime)) {
            return "";
        }
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime);
@@ -141,8 +144,8 @@
        return updateTime;
    }
    public String getUpdateTime$(){
        if (Cools.isEmpty(this.updateTime)){
    public String getUpdateTime$() {
        if (Cools.isEmpty(this.updateTime)) {
            return "";
        }
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime);
@@ -156,9 +159,11 @@
        return status;
    }
    public String getStatus$(){
        if (null == this.status){ return null; }
        switch (this.status){
    public String getStatus$() {
        if (null == this.status) {
            return null;
        }
        switch (this.status) {
            case 1:
                return "有效";
            case 0: