generated from semicolondsm/Semicolon_Repository_Generator
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0165eed
commit 5544d02
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
...nfrastructure/src/main/kotlin/com/xquare/v1userservice/feign/contoller/ExcelController.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() | ||
} | ||
} |