package org.springblade.estate.feign;

import io.swagger.annotations.ApiParam;
import org.springblade.estate.entity.WorkOrderGroupUser;
import org.springblade.estate.vo.WorkOrderGroupUserVO;
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/workordergroupuser")
public interface IWorkOrderGroupUserClient  {

	/**
	 * 详情
	 */
	@GetMapping("/detail")
    WorkOrderGroupUserVO detail(WorkOrderGroupUser workOrderGroupUser);

	/**
	 * 查询 工单团队和用户关联表
	 */
	@GetMapping("/list")
    List<WorkOrderGroupUserVO> list(WorkOrderGroupUser workOrderGroupUser);



	/**
	 * 新增 工单团队和用户关联表
	 */
	@PostMapping("/save")
	boolean save(@Valid @RequestBody WorkOrderGroupUser workOrderGroupUser);

	/**
	 * 修改 工单团队和用户关联表
	 */
	@PostMapping("/update")
    boolean update(@Valid @RequestBody WorkOrderGroupUser workOrderGroupUser);

	/**
	 * 新增或修改 工单团队和用户关联表
	 */
	@PostMapping("/submit")
    boolean submit(@Valid @RequestBody WorkOrderGroupUser workOrderGroupUser);


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


}
