StaffFeign.java 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. package com.dk.oauth.feign.service;
  2. import com.dk.common.infrastructure.constant.Constant;
  3. import com.dk.common.model.response.mst.StaffResponse;
  4. import com.dk.common.model.vo.mst.StaffVO;
  5. import com.dk.common.response.ResponseResultVO;
  6. import org.springframework.cloud.openfeign.FeignClient;
  7. import org.springframework.web.bind.annotation.PostMapping;
  8. import org.springframework.web.bind.annotation.RequestBody;
  9. import java.util.Map;
  10. /**
  11. * @author : 姜永辉
  12. * @desc : MdmServerFeign
  13. * @date : 2024-038-10 10:56
  14. */
  15. @FeignClient(name = Constant.MDM_PREFIX + Constant.SERVER + "-dkic-b1-jyh", path = Constant.MST_STAFF, contextId = "staff")
  16. public interface StaffFeign {
  17. /**
  18. * @desc : 体验产品
  19. * @author : 姜永辉
  20. * @date : 2023-11-02 16:27
  21. */
  22. @PostMapping({"/feign_get_experience"})
  23. ResponseResultVO<StaffResponse> getFeignExperience(@RequestBody Map<String, Object> collectQuery);
  24. /**
  25. * @desc : 注册商户时候插入员工
  26. * @author : 姜永辉
  27. * @date : 2023-11-02 16:27
  28. */
  29. @PostMapping({"/insert_feign_staff"})
  30. ResponseResultVO<StaffResponse> insertFeignStaff(@RequestBody StaffVO staffVO);
  31. }