From b8ab6406011aeca1b61b2d0c5e7c1fbb3ddfcd08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E8=89=AF=28004796=29?= Date: Tue, 23 Apr 2024 18:27:10 +0800 Subject: [PATCH] init --- .../xq/controller/app/OtherController.java | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/ruoyi-xq/src/main/java/com/ruoyi/xq/controller/app/OtherController.java b/ruoyi-xq/src/main/java/com/ruoyi/xq/controller/app/OtherController.java index 49e9620..14432e3 100644 --- a/ruoyi-xq/src/main/java/com/ruoyi/xq/controller/app/OtherController.java +++ b/ruoyi-xq/src/main/java/com/ruoyi/xq/controller/app/OtherController.java @@ -1,13 +1,15 @@ package com.ruoyi.xq.controller.app; +import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.ruoyi.common.annotation.Log; import com.ruoyi.common.core.domain.R; import com.ruoyi.common.enums.BusinessType; import com.ruoyi.common.helper.LoginHelper; +import com.ruoyi.xq.domain.PairSuccess; import com.ruoyi.xq.dto.app.other.FeedbackReq; -import com.ruoyi.xq.dto.app.report.ReportPushReq; import com.ruoyi.xq.service.FeedbackService; +import com.ruoyi.xq.service.PairSuccessService; import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.tags.Tag; import lombok.extern.slf4j.Slf4j; @@ -17,6 +19,8 @@ import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; +import java.util.List; + @RestController @RequestMapping("/api/other") @Tag(name = "其他接口") @@ -25,6 +29,9 @@ public class OtherController { @Autowired private FeedbackService feedbackService; + @Autowired + private PairSuccessService pairSuccessService; + @PostMapping("/feedback") @Operation(summary = "留言反馈") @@ -35,4 +42,14 @@ public class OtherController { return R.ok(); } + @PostMapping("/pairSuccess") + @Operation(summary = "成功案例") + @Log(title = "成功案例", businessType = BusinessType.OTHER, isSaveDb = false) + public R> pairSuccess(){ + List list = pairSuccessService.list(Wrappers.lambdaQuery(PairSuccess.class) + .eq(PairSuccess::getEnableStatus, 1) + .orderByAsc(PairSuccess::getSort)); + return R.ok(list); + } + }