|
|
|
@ -1,6 +1,8 @@ |
|
|
|
|
package com.huoran.iasf.controller; |
|
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
|
import com.huoran.iasf.common.utils.Constant; |
|
|
|
|
import com.huoran.iasf.vo.req.SysColumnLongRedisVO; |
|
|
|
|
import io.swagger.annotations.*; |
|
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|
|
|
@ -50,6 +52,18 @@ public class SysColumnLongPageController { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@PostMapping("/getLongPageInformation") |
|
|
|
|
@ApiOperation(value = "根据栏目id查询类型长页栏目信息", response = SysColumnLongPage.class) |
|
|
|
|
public R getLongPageInformation(@ApiParam(name = "columnId", value = "栏目id", required = true) @RequestParam Integer columnId) { |
|
|
|
|
QueryWrapper<SysColumnLongPage> queryWrapper = new QueryWrapper<>(); |
|
|
|
|
queryWrapper.eq("column_id",columnId); |
|
|
|
|
List<SysColumnLongPage> longPageList = service.list(queryWrapper); |
|
|
|
|
return R.success(longPageList); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@PostMapping("/save") |
|
|
|
|
@ApiOperation(value = "新增", response = SysColumnLongPage.class) |
|
|
|
|
public R save(@RequestBody @Valid @ApiParam(name = "长页栏目拓展表对象", value = "传入json格式", required = true) SysColumnLongPage sysColumnLongPage) { |
|
|
|
|