package com.bonus.app.controller;

import com.bonus.app.entity.StayPersonEntity;
import com.bonus.app.service.IStayPersonService;
import com.bonus.app.service.IWarnReminderService;
import com.bonus.common.core.web.controller.BaseController;
import com.bonus.common.core.web.domain.AjaxResult;
import com.bonus.common.core.web.page.TableDataInfo;
import com.bonus.common.entity.bracelet.vo.ProjectVo;
import com.bonus.common.log.annotation.SysLog;
import com.bonus.common.log.enums.OperaType;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 现场人员管理模块
 * APP
 */
@RestController
@RequestMapping("/warnReminder/")
@Slf4j
public class WarnReminderController extends BaseController{


    @Autowired
    private IWarnReminderService service;

    /**
     * 查询预警提醒列表
     * @param proId
     * @return
     */
    @GetMapping("getWarnReminderList/{proId}")
    @SysLog(title = "预警提醒管理", businessType = OperaType.QUERY,  module = "基础管理->预警提醒管理", details = "查询预警提醒列表")
    public AjaxResult getWarnReminderList(@PathVariable Long proId) {
        return service.getWarnReminderList(proId);

    }

    /**
     * 切换时获取工程列表
     * @param proId
     * @return
     */
    @GetMapping("getProjectList/{proId}")
    @SysLog(title = "现场人员管理", businessType = OperaType.QUERY,  module = "基础管理->现场人员管理", details = "切换时获取工程列表")
    public AjaxResult getProjectList(@PathVariable Long proId) {
        return service.getProjectList(proId);
    }


}
