package com.bonus.sharedstation.app.controller;


import com.bonus.common.core.web.domain.AjaxResult;
import com.bonus.sharedstation.web.dto.EmergencyEquipmentDTO;
import com.bonus.sharedstation.web.service.IEmergencyEquipmentService;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author 云归
 */
@Tag(name = "app-设备位置")
@RestController
@RequestMapping("/information/emergencyequipmentApp")
public class EmergencyEquipmentAppController {

    @Resource
    private IEmergencyEquipmentService emergencyEquipmentService;



    /**
     * 分页查询App
     * @param emergencyEquipmentDTO 入参
     * @return 查询所有
     */
    @ApiOperation("查询急救设备位置")
    @PostMapping("/getList")
    public AjaxResult getListApp(@RequestBody EmergencyEquipmentDTO emergencyEquipmentDTO){
        return emergencyEquipmentService.getEmergencyEquipmentListApp(emergencyEquipmentDTO);

    }
}
