package com.nantian.cloud.jljc.controller;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.nantian.cloud.jljc.entity.HEnergy;
import com.nantian.cloud.jljc.service.HEnergyService;
import com.nantian.cloud.jljc.vo.Query;
import com.nantian.sc.cloud.common.core.util.R;
import com.nantian.sc.cloud.common.log.annotation.SysLog;
import com.nantian.sc.cloud.common.security.service.ScUser;
import com.nantian.sc.cloud.common.security.util.SecurityUtils;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.*;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;


/**
 * （慧能）能源表
 * @since 2020-11-11
 */
@CrossOrigin
@RestController
@AllArgsConstructor
@RequestMapping("/hEnergy")
@Api(value = "hEnergy", tags = "（慧能）能源表")
public class HEnergyController {

    private final HEnergyService hEnergyService;

    /**
     * 查询全部（慧能）能源表
     */
    @GetMapping("/list")
    @SysLog("查询全部（慧能）能源表")
    @ApiOperation(value = "查询全部（慧能）能源表", notes = "查询全部（慧能）能源表")
    public R selectAll(HEnergy hEnergy) {
        return R.ok(hEnergyService.list());
    }
}
