package com.ghy.web.controller.system;

import com.ghy.common.core.controller.BaseController;
import com.ghy.common.core.domain.entity.SysDept;
import com.ghy.system.domain.SysDeptConfig;
import com.ghy.system.service.ISysDeptConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;


/**
 * 部门配置信息
 *
 * @author clunt
 */
@Controller
@RequestMapping("/system/dept/config")
public class SysDeptConfigController extends BaseController {

    @Autowired
    private ISysDeptConfigService sysDeptConfigService;

    @PostMapping("/query")
    @ResponseBody
    public SysDeptConfig query(SysDept dept)
    {
        return sysDeptConfigService.selectByDeptId(dept.getDeptId());
    }

}
