package org.springblade.estate.feign;

import io.swagger.annotations.ApiParam;
import org.springblade.estate.entity.WorkOrderGroup;
import org.springblade.estate.vo.WorkOrderGroupVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import javax.validation.Valid;
import java.util.List;

/**
 * 工单团队 Feign
 *
 * @author lianghanqiang
 * @since 2022-01-19
 */
@FeignClient(value = "cyzh-estate",path = "/feign/workordergroup")
public interface IWorkOrderGroupClient  {

	/**
	 * 详情
	 */
	@GetMapping("/detail")
    WorkOrderGroupVO detail(WorkOrderGroup workOrderGroup);

	/**
	 * 查询 工单团队
	 */
	@GetMapping("/list")
    List<WorkOrderGroupVO> list(WorkOrderGroup workOrderGroup);



	/**
	 * 新增 工单团队
	 */
	@PostMapping("/save")
	boolean save(@Valid @RequestBody WorkOrderGroup workOrderGroup);

	/**
	 * 修改 工单团队
	 */
	@PostMapping("/update")
    boolean update(@Valid @RequestBody WorkOrderGroup workOrderGroup);

	/**
	 * 新增或修改 工单团队
	 */
	@PostMapping("/submit")
    boolean submit(@Valid @RequestBody WorkOrderGroup workOrderGroup);


	/**
	 * 删除 工单团队
	 */
	@PostMapping("/remove")
    boolean remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids);


}
