spotless
This commit is contained in:
@@ -33,19 +33,20 @@ public class LabelAllocateApiController {
|
|||||||
|
|
||||||
@Operation(summary = "배정 가능한 사용자 목록 조회", description = "배정 가능한 사용자 목록 조회")
|
@Operation(summary = "배정 가능한 사용자 목록 조회", description = "배정 가능한 사용자 목록 조회")
|
||||||
@ApiResponses(
|
@ApiResponses(
|
||||||
value = {
|
value = {
|
||||||
@ApiResponse(
|
@ApiResponse(
|
||||||
responseCode = "200",
|
responseCode = "200",
|
||||||
description = "조회 성공",
|
description = "조회 성공",
|
||||||
content =
|
content =
|
||||||
@Content(
|
@Content(
|
||||||
mediaType = "application/json",
|
mediaType = "application/json",
|
||||||
schema = @Schema(implementation = CommonCodeDto.Basic.class))),
|
schema = @Schema(implementation = CommonCodeDto.Basic.class))),
|
||||||
@ApiResponse(responseCode = "404", description = "코드를 찾을 수 없음", content = @Content),
|
@ApiResponse(responseCode = "404", description = "코드를 찾을 수 없음", content = @Content),
|
||||||
@ApiResponse(responseCode = "500", description = "서버 오류", content = @Content)
|
@ApiResponse(responseCode = "500", description = "서버 오류", content = @Content)
|
||||||
})
|
})
|
||||||
@GetMapping("/avail-user")
|
@GetMapping("/avail-user")
|
||||||
public ApiResponseDto<List<LabelAllocateDto.UserList>> availUserList(@RequestParam @Schema() String role) {
|
public ApiResponseDto<List<LabelAllocateDto.UserList>> availUserList(
|
||||||
|
@RequestParam @Schema() String role) {
|
||||||
return ApiResponseDto.ok(labelAllocateService.availUserList(role));
|
return ApiResponseDto.ok(labelAllocateService.availUserList(role));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -54,15 +55,15 @@ public class LabelAllocateApiController {
|
|||||||
public ApiResponseDto<Void> labelAllocate(@RequestBody LabelAllocateDto dto) {
|
public ApiResponseDto<Void> labelAllocate(@RequestBody LabelAllocateDto dto) {
|
||||||
|
|
||||||
List<TargetUser> targets =
|
List<TargetUser> targets =
|
||||||
List.of(
|
List.of(
|
||||||
new TargetUser("1234567", 1000),
|
new TargetUser("1234567", 1000),
|
||||||
new TargetUser("2345678", 400),
|
new TargetUser("2345678", 400),
|
||||||
new TargetUser("3456789", 440));
|
new TargetUser("3456789", 440));
|
||||||
List<TargetInspector> inspectors =
|
List<TargetInspector> inspectors =
|
||||||
List.of(
|
List.of(
|
||||||
new TargetInspector("9876543", 1000),
|
new TargetInspector("9876543", 1000),
|
||||||
new TargetInspector("8765432", 340),
|
new TargetInspector("8765432", 340),
|
||||||
new TargetInspector("98765432", 500));
|
new TargetInspector("98765432", 500));
|
||||||
labelAllocateService.allocateAsc(targets, inspectors);
|
labelAllocateService.allocateAsc(targets, inspectors);
|
||||||
|
|
||||||
return ApiResponseDto.ok(null);
|
return ApiResponseDto.ok(null);
|
||||||
|
|||||||
Reference in New Issue
Block a user