package com.nantian.cloud.dbcapp.controller;


import com.nantian.cloud.dbcapp.dto.ResponseBo;
import com.nantian.cloud.dbcapp.service.DictEnergyUseService;
import com.nantian.sc.cloud.common.core.util.R;
import com.nantian.sc.cloud.common.log.annotation.SysLog;
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.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 能源用途编码表 前端控制器
 * </p>
 *
 * @author suixin
 * @since 2022-05-09
 */
@RestController
@RequestMapping("/dictEnergyUse")
public class DictEnergyUseController {
    @Autowired
    private DictEnergyUseService dictEnergyUseService;

    @GetMapping("/getList")
    @SysLog("字典表-查询能源用途列表")
    @ApiOperation(value = "查询能源用途列表", notes = "查询能源用途列表")
    public R getEnergyUseList(){
        List<ResponseBo> energyUseList = dictEnergyUseService.getEnergyUseList();
        return R.ok(energyUseList,"查询成功");
    }
}

