From 7a4fec4da46eeb4f00fc4d21aded329c93834e9f Mon Sep 17 00:00:00 2001 From: phpcjl <phpcjl@gmail.com> Date: 星期二, 26 十一月 2024 18:13:08 +0800 Subject: [PATCH] 1.完成技师预约接口开发 --- ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/AgreementController.java | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/AgreementController.java b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/AgreementController.java index d6d43c6..73291f1 100644 --- a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/AgreementController.java +++ b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/AgreementController.java @@ -1,7 +1,7 @@ package com.ruoyi.other.controller; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.ruoyi.common.core.web.domain.AjaxResult; +import com.ruoyi.common.core.domain.R; import com.ruoyi.other.api.model.Agreement; import com.ruoyi.other.service.IAgreementService; import io.swagger.annotations.ApiImplicitParam; @@ -34,8 +34,8 @@ @ApiImplicitParams({ @ApiImplicitParam(value = "类型(1=用户协议,2=隐私协议,3=技师上门免责声明,4=注销协议,5门店提现免责声明)", name = "type", required = true, dataType = "int"), }) - public AjaxResult<String> getAgreement(@PathVariable("type") Integer type){ + public R<String> getAgreement(@PathVariable("type") Integer type){ Agreement one = agreementService.getOne(new LambdaQueryWrapper<Agreement>().eq(Agreement::getType, type)); - return AjaxResult.success(null == one ? "" : one.getContent()); + return R.ok(null == one ? "" : one.getContent()); } } -- Gitblit v1.7.1