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<>()); + + } +}