From c2931dfdb47b766ea117f711913d4993c818dd6d Mon Sep 17 00:00:00 2001 From: mitao <2763622819@qq.com> Date: 星期六, 15 六月 2024 15:50:47 +0800 Subject: [PATCH] 提交【管理后台】订单管理-售后管理相关接口 --- 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