|
|
@@ -0,0 +1,44 @@ |
|
|
|
package com.ningdatech.pmapi.ding.controller; |
|
|
|
|
|
|
|
import com.ningdatech.pmapi.ding.task.EmployeeBatchGetTask; |
|
|
|
import com.ningdatech.pmapi.ding.task.GovBusinessStripsTask; |
|
|
|
import com.ningdatech.pmapi.ding.task.OrganizationBatchGetTask; |
|
|
|
import lombok.RequiredArgsConstructor; |
|
|
|
import org.springframework.web.bind.annotation.GetMapping; |
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
|
|
|
/** |
|
|
|
* <p> |
|
|
|
* PullDingInfoController |
|
|
|
* </p> |
|
|
|
* |
|
|
|
* @author WendyYang |
|
|
|
* @since 2023/6/2 |
|
|
|
**/ |
|
|
|
@RestController |
|
|
|
@RequestMapping("/api/v1/zwdd/pull") |
|
|
|
@RequiredArgsConstructor |
|
|
|
public class DingInfoPullController { |
|
|
|
|
|
|
|
private final EmployeeBatchGetTask employeeBatchGetTask; |
|
|
|
private final GovBusinessStripsTask businessStripsTask; |
|
|
|
private final OrganizationBatchGetTask organizationBatchGetTask; |
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("/employee") |
|
|
|
public void employeeBatchGet() { |
|
|
|
employeeBatchGetTask.batchGetEmployeeTask(); |
|
|
|
} |
|
|
|
|
|
|
|
@GetMapping("/businessStrips") |
|
|
|
public void businessStripsBatchGet() { |
|
|
|
businessStripsTask.batchGetGovBusinessStripsTask(); |
|
|
|
} |
|
|
|
|
|
|
|
@GetMapping("/organization") |
|
|
|
public void organizationBatchGet() { |
|
|
|
organizationBatchGetTask.batchGetOrganizationTask(); |
|
|
|
} |
|
|
|
|
|
|
|
} |