This commit is contained in:
tanghc
2019-07-28 10:55:23 +08:00
parent fdf9f341fd
commit 33f00bbc62
9 changed files with 9 additions and 21 deletions

View File

@@ -30,7 +30,7 @@
<dependency> <dependency>
<groupId>com.gitee.sop</groupId> <groupId>com.gitee.sop</groupId>
<artifactId>sop-registry-api</artifactId> <artifactId>sop-registry-api</artifactId>
<version>1.13.3-SNAPSHOT</version> <version>1.13.4-SNAPSHOT</version>
</dependency> </dependency>
<!-- easyopen starter --> <!-- easyopen starter -->

View File

@@ -7,7 +7,7 @@ import java.util.Date;
import java.util.List; import java.util.List;
/** /**
* @author thc * @author tanghc
*/ */
@Data @Data
public class IsvInfoVO { public class IsvInfoVO {

View File

@@ -4,7 +4,7 @@ import com.gitee.easyopen.doc.annotation.ApiDocField;
import lombok.Data; import lombok.Data;
/** /**
* @author thc * @author tanghc
*/ */
@Data @Data
public class IsvKeysVO { public class IsvKeysVO {

View File

@@ -6,7 +6,7 @@ import lombok.Data;
import java.util.Date; import java.util.Date;
/** /**
* @author thc * @author tanghc
*/ */
@Data @Data
public class RoleVO { public class RoleVO {

View File

@@ -1,11 +1,7 @@
package com.gitee.sop.adminserver.api.service.result; package com.gitee.sop.adminserver.api.service.result;
import com.alibaba.fastjson.annotation.JSONField;
import com.gitee.easyopen.doc.annotation.ApiDocField; import com.gitee.easyopen.doc.annotation.ApiDocField;
import lombok.Data; import lombok.Data;
import org.apache.commons.lang.StringUtils;
import java.util.Date;
/** /**
* @author tanghc * @author tanghc
@@ -34,19 +30,11 @@ public class ServiceInstanceVO {
private String status; private String status;
@ApiDocField(description = "最后更新时间") @ApiDocField(description = "最后更新时间")
private String lastUpdatedTimestamp; private String updateTime;
@ApiDocField(description = "parentId") @ApiDocField(description = "parentId")
private Integer parentId; private Integer parentId;
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
public Date getUpdateTime() {
if (StringUtils.isBlank(lastUpdatedTimestamp)) {
return null;
}
return new Date(Long.valueOf(lastUpdatedTimestamp));
}
public String getIpPort() { public String getIpPort() {
return ip != null && port > 0 ? ip + ":" + port : ""; return ip != null && port > 0 ? ip + ":" + port : "";
} }

View File

@@ -8,7 +8,7 @@ import java.util.LinkedHashMap;
import java.util.Map; import java.util.Map;
/** /**
* @author thc * @author tanghc
*/ */
@Data @Data
public class GatewayPredicateDefinition { public class GatewayPredicateDefinition {

View File

@@ -7,7 +7,7 @@ import java.util.Date;
import java.util.List; import java.util.List;
/** /**
* @author thc * @author tanghc
*/ */
@Data @Data
public class ServiceRouteInfo { public class ServiceRouteInfo {

View File

@@ -23,7 +23,7 @@ import javax.servlet.http.HttpServletRequest;
/** /**
* @author thc * @author tanghc
*/ */
@Configuration @Configuration
public class WebConfig { public class WebConfig {

View File

@@ -26,7 +26,7 @@ import java.util.stream.Collectors;
/** /**
* 路由权限业务类 * 路由权限业务类
* *
* @author thc * @author tanghc
*/ */
@Service @Service
@Slf4j @Slf4j