1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- package com.hssx.cloudmodel.controller;
- import com.hssx.cloudmodel.service.PowerService;
- import com.hssx.cloudmodel.util.HttpRespMsg;
- import com.hssx.cloudmodel.util.PageUtil;
- import io.swagger.annotations.ApiOperation;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.stereotype.Controller;
- import org.springframework.web.bind.annotation.RequestMapping;
- import org.springframework.web.bind.annotation.RequestParam;
- import org.springframework.web.bind.annotation.ResponseBody;
- /**
- * <p>
- * 前端控制器
- * </p>
- *
- * @author 吴涛涛
- * @since 2019-08-06
- */
- @Controller
- @RequestMapping("/power")
- public class PowerController {
- @Autowired
- PowerService powerService;
- /**
- * 权限列表
- * 参数 :token 用户身份标识 pageNum 当前页码,pageSize 每页条数 keyName 关键字查询
- *
- * @return
- */
- @ApiOperation("权限列表")
- @RequestMapping("/list")
- @ResponseBody
- public HttpRespMsg list(String token, PageUtil page){
- HttpRespMsg msg = powerService.getList(token,page);
- return msg;
- }
- }
|