package com.ssm.controller;

import com.ssm.manage.service.SsmSysPowerService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
@RequestMapping("/demay/ssm/power")
public class SsmSysPowerController {
    @Autowired
    SsmSysPowerService ssmSysPowerService;

//    @ApiOperation(value = "分页获取权限信息", httpMethod = "POST", response = PageResponse.class, notes = "分页获取权限信息")
//    @RequestMapping(value = "/page", method = RequestMethod.POST)
//    public PageResponse<SysPower> selectByPage(@RequestBody PowerRequest powerRequest) {
//        PageResponse<SysPower> pageResponse = new PageResponse<>();
//        PageInfo<SysPower> pageInfo;
//        try {
//            pageInfo = ssmSysPowerService.selectPage(powerRequest);
//        } catch (Exception e) {
//            log.error("SsmSysPowerController.selectPage:", e);
//            pageResponse.setCodeAndMsg(ResponseCode.FAILED);
//            return pageResponse;
//        }
//        pageResponse.setCodeAndMsg(ResponseCode.OK);
//        pageResponse.setPageInfo(pageInfo);
//        return pageResponse;
//    }


}
