Skip to content

Commit

Permalink
actions변경
Browse files Browse the repository at this point in the history
  • Loading branch information
Bayle0627 committed Jan 2, 2025
1 parent df3186d commit f3746bc
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 14 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ name: Kotlin Lint Check
on:
push:
branches:
- actions
- main
- develop
pull_request:
branches:
- actions
- main
- develop

Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
package com.wafflestudio.toyproject.memoWithTags.memo.controller

import com.wafflestudio.toyproject.memoWithTags.memo.service.MemoService
import org.springframework.web.bind.annotation.RestController
import org.springframework.web.bind.annotation.*
import java.time.Instant

@RestController
class MemoController(
private val memoService: MemoService
) {
@PostMapping("/api/v1/memo")
fun createMemo(@RequestBody request: CreateMemoRequest): MemoDto {
fun createMemo(@RequestBody request: CreateMemoResponse): MemoDto {
return MemoDto("", emptyList())

}

@PutMapping("/api/v1/memo/{memoId}")
fun updateMemo(@PathVariable memoId: Long, @RequestBody request: UpdateMemoRequest): MemoDto {
fun updateMemo(@PathVariable memoId: Long, @RequestBody request: UpdateMemoResponse): MemoDto {
return MemoDto("", emptyList())

}

@DeleteMapping("/api/v1/memo/{memoId}")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,23 +1,30 @@
package com.wafflestudio.toyproject.memoWithTags.tag.controller

import com.wafflestudio.toyproject.memoWithTags.tag.service.TagService
import org.springframework.web.bind.annotation.*

@RestController
class TagController(
private val tagService: TagService
) {
@GetMapping("/api/v1/tag")
fun getTags(): List<TagDto> {
return emptyList() // 빈 리스트 반환
}

@PostMapping("/api/v1/tag")
fun createTag(@RequestBody request: CreateTagRequest): TagDto {
return TagDto(0L, "", "") // 기본값으로 TagDto 반환
}

@PutMapping("/api/v1/tag/{tagId}")
fun updateTag(@PathVariable id: Long, @RequestBody request: UpdateTagRequest): TagDto {
return TagDto(0L, "", "") // 기본값으로 TagDto 반환
}

@DeleteMapping("/api/v1/tag/{tagId}")
fun deleteTag(@PathVariable id: Long) {
// 반환 타입이 Unit이므로 아무 작업 없이 비워 둬도 OK
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
package com.wafflestudio.toyproject.memoWithTags.tag.service

import org.springframework.stereotype.Service

@Service
class TagService {
}
Original file line number Diff line number Diff line change
@@ -1,44 +1,47 @@
package com.wafflestudio.toyproject.memoWithTags.user.contoller
package com.wafflestudio.toyproject.memoWithTags.user.controller

import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.PostMapping
import org.springframework.web.bind.annotation.RequestBody
import org.springframework.web.bind.annotation.RestController

@RestController
class UserController(
class UserController {

) {
@GetMapping("/api/v1/auth/register")
fun register(@RequestBody request: RegisterRequest): RegisterResponse {

return RegisterResponse("", "", 0L) // 기본값으로 RegisterResponse 반환
}

@PostMapping("/api/v1/auth/login")
fun login(@RequestBody request: LoginRequest): LoginResponse {

return LoginResponse("", "", 0L) // 기본값으로 LoginResponse 반환
}

@PostMapping("/api/v1/auth/logout")
fun logout(@RequestBody request: LogoutRequest) {

// 반환 타입이 Unit이므로 아무 작업 없이 비워 둬도 OK
}

@PostMapping("/api/v1/auth/verify-email")
fun verifyEmail(@RequestBody request: VerifyEmailRequest) {

// 반환 타입이 Unit이므로 아무 작업 없이 비워 둬도 OK
}

@PostMapping("/api/v1/auth/forgot-password")
fun forgotPassword(@RequestBody request: ForgotPasswordRequest) {

// 반환 타입이 Unit이므로 아무 작업 없이 비워 둬도 OK
}

@PostMapping("/api/v1/auth/reset-password")
fun resetPassword(@RequestBody request: ResetPasswordRequest) {

// 반환 타입이 Unit이므로 아무 작업 없이 비워 둬도 OK
}

@PostMapping("/api/v1/auth/refresh-token")
fun refreshToken(): RefreshTokenResponse {

return RefreshTokenResponse("", "", 0L) // 기본값으로 RefreshTokenResponse 반환
}

}

data class RegisterRequest(
Expand Down

0 comments on commit f3746bc

Please sign in to comment.