From 8d9eca3f5e9f884a14f41d04d1898e2ee7bf9078 Mon Sep 17 00:00:00 2001 From: mitao <2763622819@qq.com> Date: 星期二, 11 六月 2024 16:08:08 +0800 Subject: [PATCH] 1.提交【管理后台】-营销管理-积分管理相关接口 2.修改websocket代码,增加用户端、拍卖师端类型区分 --- ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/controller/AgreementController.java | 18 +++++++++++++++++- 1 files changed, 17 insertions(+), 1 deletions(-) diff --git a/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/controller/AgreementController.java b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/controller/AgreementController.java index c4caf3e..67b808d 100644 --- a/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/controller/AgreementController.java +++ b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/controller/AgreementController.java @@ -1,9 +1,18 @@ package com.ruoyi.system.controller; +import com.ruoyi.common.core.domain.R; +import com.ruoyi.system.domain.Agreement; +import com.ruoyi.system.service.IAgreementService; +import io.swagger.annotations.ApiOperation; +import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; +import java.util.List; /** * <p> @@ -16,5 +25,12 @@ @RestController @RequestMapping("/agreement") public class AgreementController { - + @Resource + private IAgreementService iAgreementService; + @RequestMapping("/getAgreement") + @ResponseBody + @ApiOperation(value = "获取用户协议/隐私协议") + public R<Agreement> getAgreement(@PathVariable("agreementType") Integer agreementType) { + return R.ok(iAgreementService.getAgreement(agreementType)); + } } -- Gitblit v1.7.1