package com.dk.mdm.controller.sys;

import com.dk.common.controller.BaseController;
import com.dk.common.response.ResponseResultVO;
import com.dk.common.service.BaseService;
import com.dk.mdm.model.pojo.sys.Module;
import com.dk.mdm.service.sys.ModuleService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @desc   : 功能模块
 * @date   : 2022/5/20 16:52
 * @author : 寇珊珊
 */
@Api(tags = "API接口")
@RestController
@RequestMapping("/system/module")
public class ModuleController extends BaseController<Module> {

    @Override
    public BaseService<Module> getService() {
        return moduleService;
    }

    @Autowired
    private ModuleService moduleService;

    /**
     * @desc : 查询功能模块
     * @date : 2022/5/11 12:25
     * @author : 寇珊珊
     */
    @PostMapping("select_module")
    public ResponseResultVO selectModule(@RequestBody Module module) {
        return moduleService.selectModule(module);
    }

}
