瀏覽代碼

添加测试接口

MOKASZ\lw12420 2 年之前
父節點
當前提交
2a6460e515

+ 7 - 4
launch-admin/src/main/java/com/webflux/launchadmin/mysql/controller/lbOut/HomePageOutController.java

@@ -13,10 +13,7 @@ import org.springframework.data.domain.Sort;
 import org.springframework.data.r2dbc.core.R2dbcEntityTemplate;
 import org.springframework.data.relational.core.query.Criteria;
 import org.springframework.data.relational.core.query.Query;
-import org.springframework.web.bind.annotation.PostMapping;
-import org.springframework.web.bind.annotation.RequestBody;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.bind.annotation.*;
 import reactor.core.publisher.Mono;
 
 import java.util.ArrayList;
@@ -46,6 +43,12 @@ public class HomePageOutController {
     private HomePageTempItemRepository itemRepository;
 
 
+    @GetMapping("test")
+    public Mono<RStatus<String>> test(){
+        Mono<String> cc = Mono.just("链接成功");
+        return RStatus.success(cc);
+    }
+
     /**
      * H5 短剧查询
      * @param request