|
@@ -38,7 +38,7 @@ public class InformationController extends BaseController
|
|
|
/**
|
|
|
* 查询资讯列表
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('jnb:information:list')")
|
|
|
+// @PreAuthorize("@ss.hasPermi('jnb:information:list')")
|
|
|
@GetMapping("/list")
|
|
|
public TableDataInfo list(Information information)
|
|
|
{
|
|
@@ -51,19 +51,18 @@ public class InformationController extends BaseController
|
|
|
/**
|
|
|
* 查询前三条-小程序
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('jnb:information:query')")
|
|
|
+// @PreAuthorize("@ss.hasPermi('jnb:information:query')")
|
|
|
@GetMapping("/listWx")
|
|
|
- public TableDataInfo listWx(Information information)
|
|
|
+ public AjaxResult listWx(Information information)
|
|
|
{
|
|
|
- startPage();
|
|
|
List<Information> list = informationService.selectInformationListWx(information);
|
|
|
- return getDataTable(list);
|
|
|
+ return AjaxResult.success(list);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 查询文章列表包括置顶-小程序
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('jnb:information:query')")
|
|
|
+// @PreAuthorize("@ss.hasPermi('jnb:information:query')")
|
|
|
@GetMapping("/listWxs")
|
|
|
public TableDataInfo listWxs(Information information)
|
|
|
{
|
|
@@ -76,7 +75,7 @@ public class InformationController extends BaseController
|
|
|
/**
|
|
|
* 导出资讯列表
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('jnb:information:export')")
|
|
|
+// @PreAuthorize("@ss.hasPermi('jnb:information:export')")
|
|
|
@Log(title = "资讯导出", businessType = BusinessType.EXPORT)
|
|
|
@PostMapping("/export")
|
|
|
public void export(HttpServletResponse response, Information information)
|
|
@@ -89,7 +88,7 @@ public class InformationController extends BaseController
|
|
|
/**
|
|
|
* 获取资讯详细信息
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('jnb:information:query')")
|
|
|
+// @PreAuthorize("@ss.hasPermi('jnb:information:query')")
|
|
|
@GetMapping(value = "/{id}/{type}")
|
|
|
public AjaxResult getInfo(@PathVariable("id") Long id,@PathVariable("type") Integer type)
|
|
|
{
|
|
@@ -99,7 +98,7 @@ public class InformationController extends BaseController
|
|
|
/**
|
|
|
* 新增资讯
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('jnb:information:add')")
|
|
|
+// @PreAuthorize("@ss.hasPermi('jnb:information:add')")
|
|
|
@Log(title = "新增资讯", businessType = BusinessType.INSERT)
|
|
|
@PostMapping
|
|
|
public AjaxResult add(@RequestBody Information information)
|
|
@@ -110,7 +109,7 @@ public class InformationController extends BaseController
|
|
|
/**
|
|
|
* 修改资讯
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('jnb:information:edit')")
|
|
|
+// @PreAuthorize("@ss.hasPermi('jnb:information:edit')")
|
|
|
@Log(title = "修改资讯", businessType = BusinessType.UPDATE)
|
|
|
@PutMapping
|
|
|
public AjaxResult edit(@RequestBody Information information)
|
|
@@ -121,7 +120,7 @@ public class InformationController extends BaseController
|
|
|
/**
|
|
|
* 删除资讯
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('jnb:information:remove')")
|
|
|
+// @PreAuthorize("@ss.hasPermi('jnb:information:remove')")
|
|
|
@Log(title = "删除资讯", businessType = BusinessType.DELETE)
|
|
|
@DeleteMapping("/{ids}/{type}")
|
|
|
public AjaxResult remove(@PathVariable("ids") Long[] ids,@PathVariable("type") Integer type)
|