package com.kxs.system.biz.controller.kxsapp;

import com.kxs.common.core.util.R;
import com.kxs.common.security.annotation.Inner;
import com.kxs.system.biz.service.KxsRuleMakingService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * 公共板块(RuleMaking)控制层
 *
 * @author 系统
 * @since 2023-12-15 12:16:33
 */
@RestController
@RequiredArgsConstructor
@RequestMapping("rulemaking")
public class RuleMakingController {

    /**
     * 服务对象
     */
    private final KxsRuleMakingService kxsRulemakingService;

    /**
     * 获取协议内容
     *
     * @param id 主键ID
     * @return 获取协议内容
     */
    @Inner(value = false)
    @GetMapping("/getById")
    public R getById(@RequestParam("id") Integer id) {
        return R.ok(kxsRulemakingService.getById(id));
    }

}

