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