فهرست منبع

货币Adapter上传

Sakana 1 هفته پیش
والد
کامیت
70537aba48

+ 42 - 0
edu-travel-adapter/edu-travel-adapter-currency/pom.xml

@@ -0,0 +1,42 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>edu.travel</groupId>
+        <artifactId>edu-travel-adapter</artifactId>
+        <version>1.0-SNAPSHOT</version>
+    </parent>
+
+
+    <artifactId>edu-travel-adapter-currency</artifactId>
+    <packaging>jar</packaging>
+
+    <name>edu-travel-adapter-currency</name>
+    <url>http://maven.apache.org</url>
+
+    <properties>
+        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+    </properties>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-web</artifactId>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-aop</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>edu.travel</groupId>
+            <artifactId>edu-travel-remote-country</artifactId>
+            <version>1.0-SNAPSHOT</version>
+        </dependency>
+        <dependency>
+            <groupId>edu.travel</groupId>
+            <artifactId>edu-travel-common-adapter</artifactId>
+            <version>1.0-SNAPSHOT</version>
+        </dependency>
+    </dependencies>
+</project>

+ 42 - 0
edu-travel-adapter/edu-travel-adapter-currency/src/main/java/edu/travel/adapter/service/currency/CurrencyAdapter.java

@@ -0,0 +1,42 @@
+package edu.travel.adapter.service.currency;
+
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import edu.travel.adapter.annotation.AdapterAnnotation;
+import edu.travel.dto.ShopCurrencyDto;
+import edu.travel.remote.ShopCurrencyRemoteController;
+import edu.travel.rpc.RPCBaseResponse;
+import edu.travel.vo.ShopCurrencyVo;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Component;
+
+import java.util.List;
+@Component
+public class CurrencyAdapter {
+    @Autowired
+    private ShopCurrencyRemoteController currencyRemoteController;
+    //分页
+    @AdapterAnnotation
+    public RPCBaseResponse<IPage<ShopCurrencyVo>> getCurrencyPage(ShopCurrencyDto dto) {
+        return currencyRemoteController.getCurrencyPage(dto);
+    }
+    @AdapterAnnotation
+    public RPCBaseResponse<ShopCurrencyVo> getFormId(String id) {
+        return currencyRemoteController.getFormId(id);
+    }
+    @AdapterAnnotation
+    public RPCBaseResponse<ShopCurrencyVo> updateTargetFormId(ShopCurrencyDto entity) {
+        return currencyRemoteController.updateTargetFormId(entity);
+    }
+    @AdapterAnnotation
+    public RPCBaseResponse<ShopCurrencyVo> deleteTargetFormId(List<String> ids) {
+        return currencyRemoteController.deleteTargetFormId(ids);
+    }
+    @AdapterAnnotation
+    public RPCBaseResponse<List<ShopCurrencyVo>> getAllForm() {
+        return currencyRemoteController.getAllForm();
+    }
+    @AdapterAnnotation
+    public RPCBaseResponse<ShopCurrencyVo> saveFormTarget(ShopCurrencyDto entity) {
+        return currencyRemoteController.saveFormTarget(entity);
+    }
+}