From 4e56a01abc5ea8b5b6c8ecfad282524adac6e2d2 Mon Sep 17 00:00:00 2001 From: whz <303054730@qq.com> Date: Fri, 31 May 2024 11:51:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=B4=E6=97=B6=E5=AE=9E=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lk/paopao/controller/TagController.java | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/main/java/com/lk/paopao/controller/TagController.java diff --git a/src/main/java/com/lk/paopao/controller/TagController.java b/src/main/java/com/lk/paopao/controller/TagController.java new file mode 100644 index 0000000..0cc6ddf --- /dev/null +++ b/src/main/java/com/lk/paopao/controller/TagController.java @@ -0,0 +1,23 @@ +package com.lk.paopao.controller; + + +import com.lk.paopao.dto.rest.response.DataResult; +import com.lk.paopao.dto.rest.response.ResultUtil; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; + +import java.util.ArrayList; +import java.util.List; + +@RestController +@RequestMapping("/${app.version}/tags") +public class TagController { + // /v1/tags?type=hot_extral&num=12&extral_num=6 + @GetMapping("") + public DataResult> getTags(@RequestParam("type") String type, @RequestParam("num") Integer num, @RequestParam("extral_num") Integer extralNum) { + return ResultUtil.ok(new ArrayList<>()); + + } +}