From 6f7507665afbf3a3a985c0554cb4031d3b84a1a7 Mon Sep 17 00:00:00 2001
From: mitao <2763622819@qq.com>
Date: 星期一, 17 六月 2024 14:55:19 +0800
Subject: [PATCH] 1.修改bug 2.对接聚通达短信服务

---
 ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/controller/AgreementController.java |   18 ++++++++++++++++--
 1 files changed, 16 insertions(+), 2 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..d6386a6 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,8 +1,14 @@
 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 javax.annotation.Resource;
+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;
 
 /**
@@ -15,6 +21,14 @@
  */
 @RestController
 @RequestMapping("/agreement")
-public class AgreementController {
 
+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