package org.security.desk.feign;

import org.security.common.constant.CommonConstant;
import org.security.ht.workHandOverUsers.dto.WorkHandoverUsersDTO;
import org.security.ht.workHandOverUsers.vo.WorkHandoverUsersVO;
import org.springblade.core.tool.api.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;

/**
 * @author zj 2022/9/6
 */
@FeignClient(value = CommonConstant.APPLICATION_SECURITY)
public interface HtSecurityFeignClient {

	@GetMapping("/work/handover/detail/{idCard}")
	R<WorkHandoverUsersVO> getByIdCard(@PathVariable String idCard);

	@PostMapping("/work/handover/save")
	R  add(@Valid @RequestBody WorkHandoverUsersDTO workHandoverUsersDTO);

}
