[KC-168] 라벨링 툴 > 목록, 기본 페이징 API 지정uuid 페이징 계산 추가
This commit is contained in:
@@ -49,11 +49,9 @@ public class TrainingDataLabelApiController {
|
||||
public ApiResponseDto<Page<LabelingListDto>> findLabelingAssignedList(
|
||||
@RequestParam(defaultValue = "0") int page,
|
||||
@RequestParam(defaultValue = "20") int size,
|
||||
@RequestParam(defaultValue = "01022223333") String userId,
|
||||
@RequestParam(defaultValue = "ASSIGNED,SKIP,DONE", required = false) String status) {
|
||||
@RequestParam(defaultValue = "01022223333") String userId) {
|
||||
TrainingDataLabelDto.searchReq searchReq = new TrainingDataLabelDto.searchReq(page, size, "");
|
||||
return ApiResponseDto.ok(
|
||||
trainingDataLabelService.findLabelingAssignedList(searchReq, userId, status));
|
||||
return ApiResponseDto.ok(trainingDataLabelService.findLabelingAssignedList(searchReq, userId));
|
||||
}
|
||||
|
||||
@Hidden
|
||||
@@ -177,7 +175,11 @@ public class TrainingDataLabelApiController {
|
||||
public ApiResponseDto<TrainingDataLabelDto.DefaultPaging> getDefaultPagingNumber(
|
||||
@Parameter(description = "사번", example = "01022223333") @RequestParam String userId,
|
||||
@Parameter(description = "페이징 사이즈", example = "20") @RequestParam(defaultValue = "20")
|
||||
Integer size) {
|
||||
return ApiResponseDto.ok(trainingDataLabelService.getDefaultPagingNumber(userId, size));
|
||||
Integer size,
|
||||
@Parameter(description = "개별 UUID", example = "79bcdbbe-6ed4-4caa-b4a4-22f3cf2f9d25")
|
||||
@RequestParam(required = false)
|
||||
String assignmentUid) {
|
||||
return ApiResponseDto.ok(
|
||||
trainingDataLabelService.getDefaultPagingNumber(userId, size, assignmentUid));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user