临时实现
This commit is contained in:
parent
78f60238c1
commit
4e56a01abc
23
src/main/java/com/lk/paopao/controller/TagController.java
Normal file
23
src/main/java/com/lk/paopao/controller/TagController.java
Normal 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<>());
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user