Skip to content

Commit

Permalink
Merge pull request #32
Browse files Browse the repository at this point in the history
Feature/information
  • Loading branch information
jombidev authored May 9, 2024
2 parents dae63b2 + 1ecb54b commit 99f7e71
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import com.molohala.grow.api.response.ResponseData
import com.molohala.grow.core.info.application.dto.req.EditUserInfoReq
import com.molohala.grow.core.info.application.dto.req.NewSocialAccountReq
import com.molohala.grow.core.info.application.service.InfoService
import com.molohala.grow.core.member.domain.consts.MemberJob
import jakarta.validation.Valid
import org.springframework.web.bind.annotation.*

Expand All @@ -30,6 +31,9 @@ class InfoController(
return Response.ok("내 정보 수정 완료")
}

@GetMapping("/jobs")
fun jobs() = ResponseData.ok("직업 정보 불러오기 완료", MemberJob.entries.map { it.display })

@GetMapping("/user/{id}")
fun getOtherUserInfo(@PathVariable id: Long) = ResponseData.ok("유저 정보 조회 완료", infoService.getUserInfo(id))

Expand Down

0 comments on commit 99f7e71

Please sign in to comment.