diff options
author | 2016-09-26 19:43:31 +0800 | |
---|---|---|
committer | 2016-09-26 19:43:31 +0800 | |
commit | ed32196391ae54cd58ecdf2e5e15ce89570b0dd1 (patch) | |
tree | f0c869868ef08737eb8e337a21cc4f7732ac5c2d /msb-core/apiroute/apiroute-service/src/main/java/org/openo/msb/api | |
parent | efff91f167a9223637d494acc89a8302a6233bf6 (diff) |
OCS-52 Translate Chinese annotation
bug: OCS-52
Translate Chinese annotation
Change-Id: Ib9872877f11f23cde1efac6ff3f9f61b3a390f30
Signed-off-by: tanghua <tang.hua52@zte.com.cn>
Diffstat (limited to 'msb-core/apiroute/apiroute-service/src/main/java/org/openo/msb/api')
4 files changed, 9 insertions, 9 deletions
diff --git a/msb-core/apiroute/apiroute-service/src/main/java/org/openo/msb/api/ApiRouteInfo.java b/msb-core/apiroute/apiroute-service/src/main/java/org/openo/msb/api/ApiRouteInfo.java index ef22994..bb0818e 100644 --- a/msb-core/apiroute/apiroute-service/src/main/java/org/openo/msb/api/ApiRouteInfo.java +++ b/msb-core/apiroute/apiroute-service/src/main/java/org/openo/msb/api/ApiRouteInfo.java @@ -50,7 +50,7 @@ public class ApiRouteInfo implements Serializable{ private String visualRange = "1"; @ApiModelProperty(value = "[LB Policy]non_ip_hash:0,ip_hash:1", allowableValues = "0,1", example = "0") - private String useOwnUpstream="0"; //负载均衡策略 + private String useOwnUpstream="0"; @ApiModelProperty(required = true) private RouteServer servers[]; diff --git a/msb-core/apiroute/apiroute-service/src/main/java/org/openo/msb/api/CustomRouteInfo.java b/msb-core/apiroute/apiroute-service/src/main/java/org/openo/msb/api/CustomRouteInfo.java index 208f3ff..9393bb9 100644 --- a/msb-core/apiroute/apiroute-service/src/main/java/org/openo/msb/api/CustomRouteInfo.java +++ b/msb-core/apiroute/apiroute-service/src/main/java/org/openo/msb/api/CustomRouteInfo.java @@ -38,7 +38,7 @@ public class CustomRouteInfo implements Serializable{ private String visualRange = "1"; @ApiModelProperty(value = "[LB Policy]non_ip_hash:0,ip_hash:1", allowableValues = "0,1", example = "0") - private String useOwnUpstream="0"; //负载均衡策略 + private String useOwnUpstream="0"; @ApiModelProperty(required = true) private RouteServer servers[]; diff --git a/msb-core/apiroute/apiroute-service/src/main/java/org/openo/msb/api/IuiRouteInfo.java b/msb-core/apiroute/apiroute-service/src/main/java/org/openo/msb/api/IuiRouteInfo.java index 9e40783..050871f 100644 --- a/msb-core/apiroute/apiroute-service/src/main/java/org/openo/msb/api/IuiRouteInfo.java +++ b/msb-core/apiroute/apiroute-service/src/main/java/org/openo/msb/api/IuiRouteInfo.java @@ -38,7 +38,7 @@ public class IuiRouteInfo implements Serializable{ private String visualRange = "1"; @ApiModelProperty(value = "[LB Policy]non_ip_hash:0,ip_hash:1", allowableValues = "0,1", example = "0") - private String useOwnUpstream="0"; //负载均衡策略 + private String useOwnUpstream="0"; @ApiModelProperty(required = true) private RouteServer servers[]; diff --git a/msb-core/apiroute/apiroute-service/src/main/java/org/openo/msb/api/Service.java b/msb-core/apiroute/apiroute-service/src/main/java/org/openo/msb/api/Service.java index 8969e1d..3839bac 100644 --- a/msb-core/apiroute/apiroute-service/src/main/java/org/openo/msb/api/Service.java +++ b/msb-core/apiroute/apiroute-service/src/main/java/org/openo/msb/api/Service.java @@ -25,24 +25,24 @@ import com.fasterxml.jackson.annotation.JsonIgnoreProperties; @JsonIgnoreProperties(ignoreUnknown = true) public class Service<T> implements Serializable { private static final long serialVersionUID = 1L; - // 服务名 + @ApiModelProperty(required = true) private String serviceName; - // 版本号 + @ApiModelProperty(example = "v1") private String version=""; - // 服务url + @ApiModelProperty(value = "Target Service URL,start with /",example = "/api/serviceName/v1", required = true) private String url=""; - // 服务对应协议,比如REST、UI、MQ、FTP、SNMP、TCP、UDP + @ApiModelProperty(value = "Service Protocol", allowableValues = "REST,UI, MQ, FTP,SNMP,TCP,UDP", example = "REST",required = true) private String protocol = ""; - //服务的可见范围 系统间:0 系统内:1 + @ApiModelProperty(value = "[visual Range]interSystem:0,inSystem:1", allowableValues = "0,1", example = "1") private String visualRange = "1"; - //负载均衡策略类型 + @ApiModelProperty(value = "lb policy", allowableValues = "round-robin,hash,least_conn", example = "hash") private String lb_policy=""; |