From 3bba8ccaea4c0ff7ad5a7acb056d554c42b2eca2 Mon Sep 17 00:00:00 2001
From: jiangqs <jiangqs>
Date: 星期三, 03 五月 2023 17:10:43 +0800
Subject: [PATCH] 小程序初步完成

---
 ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/controller/miniapp/AppConfigController.java |   43 +++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 43 insertions(+), 0 deletions(-)

diff --git a/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/controller/miniapp/AppConfigController.java b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/controller/miniapp/AppConfigController.java
new file mode 100644
index 0000000..af8bbad
--- /dev/null
+++ b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/controller/miniapp/AppConfigController.java
@@ -0,0 +1,43 @@
+package com.ruoyi.system.controller.miniapp;
+
+import com.ruoyi.common.core.domain.R;
+import com.ruoyi.common.security.utils.SecurityUtils;
+import com.ruoyi.system.domain.dto.AppAgreementDto;
+import com.ruoyi.system.domain.vo.AppAgreementVo;
+import com.ruoyi.system.service.config.AgreementService;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+ * @author jqs34
+ * @ClassName AppConfigController
+ * @description: TODO
+ * @date 2023年04月19日
+ * @version: 1.0
+ */
+@Api(value = "小程序配置相关接口", tags = "小程序配置相关接口", description = "小程序配置相关接口")
+@RestController
+@RequestMapping("/app/config")
+public class AppConfigController {
+
+
+    @Autowired
+    private AgreementService agreementService;
+
+
+
+    @RequestMapping(value = "/getAppAgreement", method = RequestMethod.POST)
+    @ApiOperation(value = "获取协议")
+    public R<AppAgreementVo> getAppAgreement(@RequestBody AppAgreementDto appAgreementDto){
+        AppAgreementVo appAgreementVo = agreementService.getAppAgreement(appAgreementDto);
+        return R.ok(appAgreementVo);
+    }
+
+
+
+}

--
Gitblit v1.7.1