package com.artfess.rescue.event.controller;


import com.alibaba.fastjson.JSONObject;
import com.artfess.base.annotation.ApiGroup;
import com.artfess.base.constants.ApiGroupConsts;
import com.artfess.base.model.CommonResult;
import com.artfess.rescue.event.dto.RescueCostDto;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import net.hasor.web.annotation.RequestBody;
import org.springframework.web.bind.annotation.*;
import com.artfess.base.controller.BaseController;
import com.artfess.rescue.event.model.BizRescueCost;
import com.artfess.rescue.event.manager.BizRescueCostManager;

/**
 * 救援费用 前端控制器
 *
 * @company 阿特菲斯信息技术有限公司
 * @author 系统管理员
 * @since 2024-10-24
 */
@RestController
@RequestMapping("/event/bizRescueCost/v1/")
@Api(tags = "救援费用")
@ApiGroup(group = {ApiGroupConsts.GROUP_BIZ_RESCUE})
public class BizRescueCostController extends BaseController<BizRescueCostManager, BizRescueCost> {


    @GetMapping("/charge")
    @ApiOperation("根据当前操作人员所在区域对救援车辆进行收费")
    public CommonResult charge(@RequestBody RescueCostDto dto) {
        JSONObject object = baseService.costDetails(dto);
        return CommonResult.success(object,null);
    }

}
