|
|
@ -19,12 +19,9 @@ import org.springframework.http.MediaType;
|
|
|
|
import org.springframework.http.ResponseEntity;
|
|
|
|
import org.springframework.http.ResponseEntity;
|
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
import org.springframework.web.bind.annotation.ModelAttribute;
|
|
|
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Tag(name = "MinUserinfoController", description = "사용자 관리")
|
|
|
|
@Tag(name = "MinUserController", description = "사용자 관리")
|
|
|
|
@RestController
|
|
|
|
@RestController
|
|
|
|
@RequestMapping("/api/v1/ctgy/user")
|
|
|
|
@RequestMapping("/api/v1/ctgy/user")
|
|
|
|
@Validated
|
|
|
|
@Validated
|
|
|
@ -44,7 +41,7 @@ public class MinUserController {
|
|
|
|
@Parameter(in = ParameterIn.QUERY, name = "size", description = "페이지당갯수", required = true, example = "10")
|
|
|
|
@Parameter(in = ParameterIn.QUERY, name = "size", description = "페이지당갯수", required = true, example = "10")
|
|
|
|
})
|
|
|
|
})
|
|
|
|
@GetMapping(produces = MediaType.APPLICATION_JSON_VALUE)
|
|
|
|
@GetMapping(produces = MediaType.APPLICATION_JSON_VALUE)
|
|
|
|
public ResponseEntity<? extends IRestResponse> findMinUserinfos(
|
|
|
|
public ResponseEntity<? extends IRestResponse> findMinUsers(
|
|
|
|
@Parameter(hidden = true)
|
|
|
|
@Parameter(hidden = true)
|
|
|
|
@ModelAttribute("minUserinfoDto")
|
|
|
|
@ModelAttribute("minUserinfoDto")
|
|
|
|
final MinUserinfoDto minUserinfoDto,
|
|
|
|
final MinUserinfoDto minUserinfoDto,
|
|
|
@ -57,8 +54,14 @@ public class MinUserController {
|
|
|
|
@GetMapping("/info")
|
|
|
|
@GetMapping("/info")
|
|
|
|
@Secured(policy = SecurityPolicy.TOKEN)
|
|
|
|
@Secured(policy = SecurityPolicy.TOKEN)
|
|
|
|
@Transactional(readOnly = true)
|
|
|
|
@Transactional(readOnly = true)
|
|
|
|
public ResponseEntity<? extends IRestResponse> getUserInfo() {
|
|
|
|
public ResponseEntity<? extends IRestResponse> getMinUser() {
|
|
|
|
return RestResponse.of(service.findMyUserWithoutAuthorities());
|
|
|
|
return RestResponse.of(service.findMinUser());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Operation(summary = "사용자 정보 조회" , description = "사용자 정보 조회")
|
|
|
|
|
|
|
|
@GetMapping("/{userid}")
|
|
|
|
|
|
|
|
//@Transactional(readOnly = true)
|
|
|
|
|
|
|
|
public ResponseEntity<? extends IRestResponse> getMinUser(@PathVariable String userid) {
|
|
|
|
|
|
|
|
return RestResponse.of(service.findMinUserByUserid(userid));
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|