package com.chushang.inspection.terminal.controller;
import com.chushang.common.core.web.AjaxResult;
import com.chushang.common.log.annotation.SysLog;
import com.chushang.inspection.terminal.po.ConsumableDetails;
import com.chushang.inspection.terminal.query.ConsumablesDetailsQuery;
import com.chushang.inspection.terminal.service.ConsumableDetailsService;
import com.chushang.security.annotation.RequiresPermissions;
import lombok.extern.java.Log;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
* (consumable_details)表控制层
*
* @author xxxxx
*/
@RestController
@RequestMapping("/consumable/details")
public class ConsumableDetailsController {
    @Resource
    ConsumableDetailsService consumableDetailsService;
    /**
     * 查询耗材详情
     */
    @GetMapping("/page")
    @RequiresPermissions("consumables:details:page")
    public AjaxResult findPage(@Validated ConsumablesDetailsQuery query) {
        return AjaxResult.success(consumableDetailsService.findPage(query));
    }
}
