diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..c1fbf48 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,8 @@ +@Library('jgpl') _ + +servicePipeline([ + environment: [ + version : '5.6.0-HBCL-RELEASE', + ], + rpcDependenceServices:["cms", "cos", "fms", "ims", "sms"], +]) diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..d15f428 --- /dev/null +++ b/pom.xml @@ -0,0 +1,94 @@ + + + 4.0.0 + + + com.bocloud + bocloud.bre + 5.6.0-RELEASE + + + + 5.6.0-RELEASE + 5.6.0-HBCL-RELEASE + + + bocloud.rpc + ${bocloud.current.version} + + + + com.bocloud + bocloud.acd.rpc + ${bocloud.bre.version} + + + com.bocloud + bocloud.bre.service + ${bocloud.bre.version} + + + com.bocloud + bocloud.sms.entity + ${bocloud.current.version} + + + com.bocloud + bocloud.cos.entity + ${bocloud.current.version} + + + + + + + + com.bocloud + bocloud.cop.entity + ${bocloud.current.version} + + + com.bocloud + bocloud.fms.entity + ${bocloud.current.version} + + + com.bocloud + bocloud.ims.entity + ${bocloud.current.version} + + + com.bocloud + bocloud.pms.entity + ${bocloud.current.version} + + + com.bocloud + bocloud.rms.entity + ${bocloud.current.version} + + + + + + org.apache.maven.plugins + maven-dependency-plugin + + + + copy-dependencies + + + jar + jar + runtime + ${project.build.directory}/libs + + + + + + + diff --git a/src/main/java/com/bocloud/rpc/interfaces/cos/CosRpcService.java b/src/main/java/com/bocloud/rpc/interfaces/cos/CosRpcService.java new file mode 100644 index 0000000..95fd94b --- /dev/null +++ b/src/main/java/com/bocloud/rpc/interfaces/cos/CosRpcService.java @@ -0,0 +1,12 @@ +package com.bocloud.rpc.interfaces.cos; + +import com.bocloud.acd.rpc.anno.RPCService; +import com.bocloud.common.enums.BoCloudService; +import com.bocloud.cos.entity.BillItem; + +import java.util.List; + +@RPCService(BoCloudService.COS) +public interface CosRpcService { + List listBillItems(); +} diff --git a/src/main/java/com/bocloud/rpc/interfaces/ims/ImsRpcService.java b/src/main/java/com/bocloud/rpc/interfaces/ims/ImsRpcService.java new file mode 100644 index 0000000..2d52dfa --- /dev/null +++ b/src/main/java/com/bocloud/rpc/interfaces/ims/ImsRpcService.java @@ -0,0 +1,15 @@ +package com.bocloud.rpc.interfaces.ims; + +import com.bocloud.acd.rpc.anno.RPCService; +import com.bocloud.common.enums.BoCloudService; + +import java.util.List; + +@RPCService(BoCloudService.IMS) +public interface ImsRpcService { + /** + * 同时预占用和释放IP + * 不要用BocloudResult通信,BocloudResult是用来返回接口信息的,内部处理要扁平化,避免不必要的实体类, + */ + void preemptOrFreeIp(List ipsToPreempt, List ipsToFree) ; +} diff --git a/src/main/java/com/bocloud/rpc/interfaces/sms/SmsRpcService.java b/src/main/java/com/bocloud/rpc/interfaces/sms/SmsRpcService.java new file mode 100644 index 0000000..d6b84a3 --- /dev/null +++ b/src/main/java/com/bocloud/rpc/interfaces/sms/SmsRpcService.java @@ -0,0 +1,16 @@ +package com.bocloud.rpc.interfaces.sms; + +import com.bocloud.acd.rpc.anno.RPCService; +import com.bocloud.common.enums.BoCloudService; +import com.bocloud.sms.entity.Project; +import com.bocloud.sms.entity.User; + +import java.util.List; + +@RPCService(BoCloudService.SMS) +public interface SmsRpcService { + + User userDetail(String name); + + List getProjectList(); +}