diff options
author | Jian Huang <huang.jian12@zte.com.cn> | 2016-09-27 02:21:15 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@open-o.org> | 2016-09-27 02:21:15 +0000 |
commit | 7ad9ea1bab02270ed5bcc10e36d6f1e391752bf6 (patch) | |
tree | 2eaf03f35202ee94159c88f284cbc61e42f96b5e /msb-core/apiroute/apiroute-service/src/main/java/org/openo/msb/api/Service.java | |
parent | 53367202519152b1f7991d1ab97d0568cb874a31 (diff) | |
parent | ed32196391ae54cd58ecdf2e5e15ce89570b0dd1 (diff) |
Merge "OCS-52 Translate Chinese annotation"
Diffstat (limited to 'msb-core/apiroute/apiroute-service/src/main/java/org/openo/msb/api/Service.java')
-rw-r--r-- | msb-core/apiroute/apiroute-service/src/main/java/org/openo/msb/api/Service.java | 12 |
1 files changed, 6 insertions, 6 deletions
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 6db6a11..6e19a71 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=""; |