From 7a4f9541331bef779a506b38a27ed5c3373c0bec Mon Sep 17 00:00:00 2001 From: Pu Zhibing <393733352@qq.com> Date: 星期四, 15 五月 2025 13:53:22 +0800 Subject: [PATCH] 开发二级等保功能及心跳消息队列修改 --- ruoyi-api/ruoyi-api-other/src/main/java/com/ruoyi/other/api/feignClient/OtherClient.java | 56 +++++++++++++++++++++++++++++++++++++++++++++----------- 1 files changed, 45 insertions(+), 11 deletions(-) diff --git a/ruoyi-api/ruoyi-api-other/src/main/java/com/ruoyi/other/api/feignClient/OtherClient.java b/ruoyi-api/ruoyi-api-other/src/main/java/com/ruoyi/other/api/feignClient/OtherClient.java index 4630bf6..a189721 100644 --- a/ruoyi-api/ruoyi-api-other/src/main/java/com/ruoyi/other/api/feignClient/OtherClient.java +++ b/ruoyi-api/ruoyi-api-other/src/main/java/com/ruoyi/other/api/feignClient/OtherClient.java @@ -1,25 +1,31 @@ package com.ruoyi.other.api.feignClient; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.ruoyi.account.api.dto.TagListQueryDto; -import com.ruoyi.account.api.dto.UnitListQueryDto; import com.ruoyi.common.core.constant.ServiceNameConstants; import com.ruoyi.common.core.domain.R; -import com.ruoyi.other.api.domain.TCompany; -import com.ruoyi.other.api.domain.TUserTag; -import com.ruoyi.other.api.factory.GoodsFallbackFactory; +import com.ruoyi.other.api.domain.*; +import com.ruoyi.other.api.dto.TagListQueryDto; +import com.ruoyi.other.api.dto.UnitListQueryDto; import com.ruoyi.other.api.factory.OtherFallbackFactory; +import com.ruoyi.other.api.vo.CouponListVOVO; import org.springframework.cloud.openfeign.FeignClient; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.*; + +import java.util.List; +import java.util.Map; /** * 商品服务 * @author ruoyi */ -@FeignClient(contextId = "UnitClient", value = ServiceNameConstants.CONTRACT_SERVICE, fallbackFactory = OtherFallbackFactory.class) +@FeignClient(contextId = "UnitClient", value = ServiceNameConstants.OTHER_SERVICE, fallbackFactory = OtherFallbackFactory.class) public interface OtherClient { + /** + * 远程调用 获取首次添加车辆可获得积分 + * @return + */ + @PostMapping("/integral/getAddCarIntegral") + public R<Integer> getAddCarIntegral(); //单位分页 @PostMapping(value = "/t-company/unit/page") R<Page<TCompany>> queryUnitPage(@RequestBody UnitListQueryDto unitListQueryDto); @@ -28,8 +34,10 @@ R unitAddorUpadate(@RequestBody TCompany tCompany); //单位删除 @PostMapping(value = "/t-company/unit/delete") - R unitDelete(@RequestParam Integer id); + R unitDelete(@RequestParam("id") Integer id); + @PostMapping(value = "/t-company/unit/detail") + R<TCompany> unitDetail(@RequestParam("id") Integer id); //标签分页 @PostMapping(value = "/t-user-tag/page") @@ -38,6 +46,32 @@ //用户新增标签 @PostMapping(value = "/t-user-tag/addorUpdateTag") R addorUpdateTag(@RequestBody TUserTag tUserTag); + //删除用户标签 @PostMapping(value = "/t-user-tag/delete") - R deleteTag(@RequestParam Integer id); + R deleteTag(@RequestParam("id") Integer id); + + //获取标签Map + @PostMapping(value = "/t-user-tag/getTagMap") + R<Map<Integer, String>> getTagMap(@RequestBody List<Integer> ids); + //获取标签 + @PostMapping(value = "/t-user-tag/getById") + R<TUserTag> getByIdTag(@RequestParam("id") Integer id); + + @PostMapping(value = "/vip/getVipMap") + R<Map<Integer, String>> getVipMap(@RequestBody List<Integer> ids); + + /** + * 小程序远程调用 获取优惠券信息 + */ + @PostMapping(value = "/t-coupon/getCouponInfoByCouponIds") + R<List<CouponListVOVO>> getCouponInfoByCouponIds(@RequestBody List<CouponListVOVO> list); + + + @PostMapping(value = "/t-coupon/getCouponById") + R<TCoupon> getCouponById(@RequestParam("id") Integer id); + + @PutMapping(value = "/t-enterprise-user-application/export") + R<List<TEnterpriseUserApplication>> getTnterPrise(); + @GetMapping("/region/getRegionBuyCode/{code}") + R<Region> getRegionBuyCode(@PathVariable("code") String code); } -- Gitblit v1.7.1