package com.fjhx.controller.abnormal;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springblade.core.tool.api.R;
import com.fjhx.entity.abnormal.AbnormalInfo;
import com.fjhx.params.abnormal.AbnormalInfoVo;
import com.fjhx.service.abnormal.AbnormalInfoService;
import org.springframework.beans.factory.annotation.Autowired;
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 java.util.Map;

/**
 * <p>
 * 异常记录 前端控制器
 * </p>
 *
 * @author ${author}
 * @since 2022-12-09
 */
@RestController
@RequestMapping("/abnormalInfo")
public class AbnormalInfoController {

    @Autowired
    private AbnormalInfoService abnormalInfoService;

//    @PostMapping("/page")
//    public R page(@RequestBody Map<String, Object> condition){
//        Page<AbnormalInfo> result = abnormalInfoService.getPage(condition);
//        return R.success(result);
//    }
//
//    @PostMapping("/add")
//    public R add(@RequestBody AbnormalInfoVo abnormalInfoVo){
//        abnormalInfoService.add(abnormalInfoVo);
//        return R.success();
//    }
//
//    @PostMapping("/edit")
//    public R edit(@RequestBody AbnormalInfoVo abnormalInfoVo){
//        abnormalInfoService.edit(abnormalInfoVo);
//        return R.success();
//    }
//
//    @PostMapping("/delete")
//    public R delete(@RequestBody AbnormalInfoVo abnormalInfoVo){
//        abnormalInfoService.delete(abnormalInfoVo);
//        return R.success();
//    }

}

