package com.xhpc.common.api;

import com.xhpc.common.api.factory.WorkOrderFallbackFactory;
import com.xhpc.common.core.constant.ServiceNameConstants;
import com.xhpc.common.core.domain.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Date;
import java.util.Map;

/**
 * @author yuyang
 * @date 2022/6/6 11:38
 */
@FeignClient(contextId = "workOrderYuService" ,value = ServiceNameConstants.XHPC_ACTIVITY,fallbackFactory = WorkOrderFallbackFactory.class)
public interface WorkOrderYuService {

    /**
     * 添加工单
     * @return
     */
    @GetMapping("/order/addNewOrder")
    R addNewOrder(@RequestParam(value = "type") String type, @RequestParam(value = "title") String title, @RequestParam(value = "content")String content, @RequestParam(value = "reason")String reason,@RequestParam(value = "stationId")String stationId,@RequestParam(value = "deviceType")String deviceType,@RequestParam(value = "serialNumber")String serialNumber);

    /**
     * 查询工单今日是否生成
     * @return
     */
    @GetMapping("/order/workOrderMessage")
    R workOrderMessage(@RequestParam(value = "type") Integer type,@RequestParam(value = "time")String time);


}
