From 98323cfe0d2dce765f4d9859b5d3546aa1dadf7f Mon Sep 17 00:00:00 2001 From: Hoshi <1196756653@qq.com> Date: Sat, 18 May 2024 16:48:51 +0800 Subject: [PATCH] Initial commit all --- Jenkinsfile | 8 ++ pom.xml | 94 +++++++++++++++++++ .../rpc/interfaces/cos/CosRpcService.java | 12 +++ .../rpc/interfaces/ims/ImsRpcService.java | 15 +++ .../rpc/interfaces/sms/SmsRpcService.java | 16 ++++ 5 files changed, 145 insertions(+) create mode 100644 Jenkinsfile create mode 100644 pom.xml create mode 100644 src/main/java/com/bocloud/rpc/interfaces/cos/CosRpcService.java create mode 100644 src/main/java/com/bocloud/rpc/interfaces/ims/ImsRpcService.java create mode 100644 src/main/java/com/bocloud/rpc/interfaces/sms/SmsRpcService.java 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(); +}