临时实现

This commit is contained in:
whz 2024-05-31 11:51:25 +08:00
parent 78f60238c1
commit 4e56a01abc

View File

@ -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<List<String>> getTags(@RequestParam("type") String type, @RequestParam("num") Integer num, @RequestParam("extral_num") Integer extralNum) {
return ResultUtil.ok(new ArrayList<>());
}
}