package com.nantian.cloud.jly.controller;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.nantian.cloud.jly.entity.TMeasuringInstruments;
import com.nantian.cloud.jly.service.TMeasuringInstrumentsService;
import com.nantian.sc.cloud.common.core.util.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.*;


/**
 * 计量器具信息
 */
@CrossOrigin
@RestController
@AllArgsConstructor
@RequestMapping("/tMeasuringInstruments")
@Api(value = "tMeasuringInstruments", tags = "计量器具信息")
public class TMeasuringInstrumentsController {
    private final TMeasuringInstrumentsService tMeasuringInstrumentsService;

    /**
     * 获取计量器具信息树形结构
     */
    @GetMapping("/tree")
    @ApiOperation(value = "获取计量器具信息树形结构", notes = "获取计量器具信息树形结构")
    public R tree() {
       return R.ok(tMeasuringInstrumentsService.getTree());
    }

}
