RightsController.java 971 Bytes
package com.topdraw.business.basicdata.rights.rest;

import com.topdraw.business.basicdata.rights.service.RightsService;
import com.topdraw.common.ResultInfo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author XiangHan
 * @date 2021-10-22
 */
@Api(tags = "Rights管理")
@RestController
@RequestMapping("/api/Rights")
public class RightsController {

    @Autowired
    private RightsService rightsService;

    @GetMapping(value = "/findById/{id}")
    @ApiOperation("查询Rights")
    public ResultInfo findById(@PathVariable("id") Long id) {
        return ResultInfo.success(rightsService.findById(id));
    }

}