mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-13 05:12:07 +08:00
超管统计接口50%
This commit is contained in:
+10
@@ -9,7 +9,9 @@ import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@FeignClient(name = ApiConstants.NAME) // TODO 晨丰:fallbackFactory =
|
||||
@Tag(name = "RPC 服务 - 多组织")
|
||||
@@ -26,4 +28,12 @@ public interface OrganApi {
|
||||
@Parameter(name = "id", description = "组织编号", required = true, example = "1024")
|
||||
CommonResult<Boolean> validOrgan(@RequestParam("id") Long id);
|
||||
|
||||
@GetMapping(PREFIX + "/total/org")
|
||||
@Operation(summary = "组织总数查询")
|
||||
CommonResult<Map<String, Integer>> getOrgTotal();
|
||||
|
||||
@GetMapping(PREFIX + "/separate/org")
|
||||
@Operation(summary = "新增、注销组织数量统计")
|
||||
CommonResult<Map<String, Object>> getOrgSeparate(@RequestParam("time") LocalDate[] createTime, @RequestParam("unit")Integer unit);
|
||||
|
||||
}
|
||||
|
||||
+7
@@ -74,4 +74,11 @@ public interface AdminUserApi {
|
||||
@Parameter(name = "organIds", description = "组织id列表", example = "1,3", required = true)
|
||||
CommonResult<List<OrganAdminUserRespDTO>> getOrganAdminByOrganIds(@RequestParam("id") Collection<Long> organIds);
|
||||
|
||||
@GetMapping(PREFIX + "/total/user")
|
||||
@Operation(summary = "用户总数")
|
||||
CommonResult<Map<String, Integer>> getUserTotal();
|
||||
|
||||
@GetMapping(PREFIX + "/total/userAct")
|
||||
@Operation(summary = "用户活跃数")
|
||||
CommonResult<Map<String, Integer>> getUserActTotal();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user