package com.ffii.fpsms.modules.stock.web

import com.ffii.fpsms.modules.master.web.models.MessageResponse
import com.ffii.fpsms.modules.stock.service.StockTransferRecordService
import com.ffii.fpsms.modules.stock.web.model.CreateStockTransferRequest
import jakarta.validation.Valid
import org.springframework.web.bind.annotation.*

@RestController
@RequestMapping("/stockTransferRecord")
class StockTransferRecordController(
    private val stockTransferRecordService: StockTransferRecordService
) {
    @PostMapping("/create")
    fun createStockTransfer(@Valid @RequestBody request: CreateStockTransferRequest): MessageResponse {
        return stockTransferRecordService.createStockTransfer(request)
    }
}