package com.bonus.material.device.controller;

import com.bonus.common.core.web.controller.BaseController;
import com.bonus.common.core.web.domain.AjaxResult;
import com.bonus.material.device.domain.DevInfo;
import com.bonus.material.device.domain.SafeBookInfo;
import com.bonus.material.device.domain.vo.DevInfoVo;
import com.bonus.material.device.service.DevInfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;
/**
 * @Author：liang.chao
 * @Date：2024/12/12 - 9:07
 */
@RestController
@RequestMapping("/tag")
@Api(value = "标签管理",tags = "标签管理")
public class TagDevController extends BaseController {

    @Resource
    private DevInfoService devInfoService;
    @ApiOperation(value = "标签管理列表")
    @GetMapping("/getTagDevList")
    public AjaxResult getTagDevList(DevInfoVo devInfoVo) {
        startPage();
        List<DevInfoVo> list = devInfoService.getTagDevList(devInfoVo);
        return AjaxResult.success(getDataTable(list));
    }
}
