From 1c3b9ecea77b913a9ce70ede8ddbb4bcea998b71 Mon Sep 17 00:00:00 2001
From: jiangqs <jiangqs>
Date: 星期三, 10 五月 2023 15:15:34 +0800
Subject: [PATCH] DEMO初步完成
---
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