用户栏目数据新增删除接口
This commit is contained in:
parent
46f9d296cb
commit
d3da3a76ce
@ -21,6 +21,7 @@ import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@ -69,10 +70,6 @@ public class UserColumnDataAppController extends DefaultBaseController {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ApiOperation(value = "用户栏目数据详情(通过ID)", notes = "用户栏目数据详情(通过ID)接口")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "token", value = "token", paramType = "header"),
|
||||
@ -88,13 +85,6 @@ public class UserColumnDataAppController extends DefaultBaseController {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ApiOperation(value = "用户栏目数据列表", notes = "用户栏目数据列表接口(默认每个栏目返回最新三条数据)")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "token", value = "token", paramType = "header")
|
||||
@ -152,10 +142,6 @@ public class UserColumnDataAppController extends DefaultBaseController {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ApiOperation(value = "栏目数据分页列表", notes = "栏目数据分页列表接口")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "token", value = "token", paramType = "header"),
|
||||
@ -185,4 +171,17 @@ public class UserColumnDataAppController extends DefaultBaseController {
|
||||
|
||||
|
||||
|
||||
@ApiOperation(value = "删除栏目数据", notes = "删除栏目数据接口")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "token", value = "token", paramType = "header"),
|
||||
@ApiImplicitParam(name = "ids", value = "ID列表,用下划线分隔", paramType = "path", example = "1_2_3")
|
||||
})
|
||||
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
|
||||
@DeleteMapping("delete/{ids}")
|
||||
public SuccessResult delete(@RequestHeader("token") String token, @PathVariable("ids") String ids) {
|
||||
userColumnDataService.delete(Arrays.asList(ids.split("\\_")));
|
||||
return new SuccessResult();
|
||||
}
|
||||
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user