From 693a33f660891c98b8b95490d020c428c5da9871 Mon Sep 17 00:00:00 2001 From: 抓蛙师 <770492966@qq.com> Date: 星期一, 19 九月 2022 21:46:32 +0800 Subject: [PATCH] 完善功能:前端可以配置多排序参数支持依次排序 如:{isAsc:"asc",orderByColumn:"id"} {isAsc:"asc",orderByColumn:"id,createTime"} {isAsc:"asc,desc",orderByColumn:"id,createTime"} 共三种配置方式 --- ruoyi-demo/src/main/java/com/ruoyi/demo/controller/TestI18nController.java | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/ruoyi-demo/src/main/java/com/ruoyi/demo/controller/TestI18nController.java b/ruoyi-demo/src/main/java/com/ruoyi/demo/controller/TestI18nController.java index a004463..0cc529a 100644 --- a/ruoyi-demo/src/main/java/com/ruoyi/demo/controller/TestI18nController.java +++ b/ruoyi-demo/src/main/java/com/ruoyi/demo/controller/TestI18nController.java @@ -2,8 +2,6 @@ import com.ruoyi.common.core.domain.R; import com.ruoyi.common.utils.MessageUtils; -import io.swagger.v3.oas.annotations.Parameter; -import io.swagger.v3.oas.annotations.tags.Tag; import lombok.Data; import org.hibernate.validator.constraints.Range; import org.springframework.validation.annotation.Validated; @@ -21,7 +19,6 @@ * @author Lion Li */ @Validated -@Tag(name ="娴嬭瘯鍥介檯鍖栨帶鍒跺櫒", description = "娴嬭瘯鍥介檯鍖栫鐞�") @RestController @RequestMapping("/demo/i18n") public class TestI18nController { @@ -31,9 +28,11 @@ * code涓� messages.properties 涓殑 key * <p> * 娴嬭瘯浣跨敤 user.register.success + * + * @param code 鍥介檯鍖朿ode */ @GetMapping() - public R<Void> get(@Parameter(name = "鍥介檯鍖朿ode") String code) { + public R<Void> get(String code) { return R.ok(MessageUtils.message(code)); } -- Gitblit v1.9.3