Skip to content

Commit

Permalink
add :: controller
Browse files Browse the repository at this point in the history
  • Loading branch information
meltapplee committed Feb 12, 2024
1 parent 0165eed commit 5544d02
Showing 1 changed file with 30 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
package com.xquare.v1userservice.feign.contoller

import com.xquare.v1userservice.feign.service.ExcelService
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.PostMapping
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController
import org.springframework.web.multipart.MultipartFile
import javax.servlet.http.HttpServletResponse

@RestController
@RequestMapping("/excel")
class ExcelController(
private val excelService: ExcelService
) {
@GetMapping
fun createExcelSheet(httpServletResponse: HttpServletResponse) {
excelService.createExcelSheet(httpServletResponse)
}

@PostMapping
fun saveExcelInfo(file: MultipartFile) {
excelService.saveExcelInfo(file)
}

@GetMapping("/userInfo")
fun createExcelSheetAsDB() {
excelService.createExcelSheetAsDB()
}
}

0 comments on commit 5544d02

Please sign in to comment.