|
|
|
@@ -14,6 +14,7 @@ import org.springframework.web.bind.annotation.PostMapping; |
|
|
|
import org.springframework.web.bind.annotation.RequestBody; |
|
|
|
import org.springframework.web.bind.annotation.RequestHeader; |
|
|
|
import org.springframework.web.bind.annotation.RequestParam; |
|
|
|
import org.springframework.web.bind.annotation.ResponseBody; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
@@ -25,15 +26,6 @@ import java.util.List; |
|
|
|
@FeignClient(contextId = "remoteStaffService", value = ServiceConstants.SYSTEM_SERVICE, fallbackFactory = RemoteUserFallbackFactory.class) |
|
|
|
public interface RemoteStaffService { |
|
|
|
|
|
|
|
/** |
|
|
|
* 新增用户 |
|
|
|
* |
|
|
|
* @param user 用户对象 |
|
|
|
* @param enterpriseId 企业Id |
|
|
|
* @param sourceName 策略源 |
|
|
|
* @param source 请求来源 |
|
|
|
* @return 结果 |
|
|
|
*/ |
|
|
|
@GetMapping("/staff/inner/{devId}/{timestamp}") |
|
|
|
R<List<DmStaffFeature>> listInner(@RequestParam(value = "devId") String devId, @RequestParam(value = "timestamp") String timestamp, |
|
|
|
@RequestHeader(SecurityConstants.ENTERPRISE_ID) Long enterpriseId, @RequestHeader(SecurityConstants.SOURCE_NAME) String sourceName, @RequestHeader(SecurityConstants.FROM_SOURCE) String source); |
|
|
|
@@ -46,5 +38,6 @@ public interface RemoteStaffService { |
|
|
|
public R<SysEnterpriseDto> tenantIdInner(@RequestParam(value = "enterpriseName") String enterpriseName) ; |
|
|
|
|
|
|
|
@PostMapping(value = "/staff/inner-api/new-staff") |
|
|
|
@ResponseBody |
|
|
|
public com.alibaba.fastjson2.JSONObject addStaff(@RequestBody DmStaffCommonDto commonDto,@RequestHeader(SecurityConstants.ENTERPRISE_ID) Long enterpriseId, @RequestHeader(SecurityConstants.SOURCE_NAME) String sourceName, @RequestHeader(SecurityConstants.FROM_SOURCE) String source); |
|
|
|
} |