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

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

@RestController
@RequestMapping("/stockAdjustment")
class StockAdjustmentController(
    private val stockAdjustmentService: StockAdjustmentService
) {
    @PostMapping("/submit")
    fun submit(@Valid @RequestBody request: StockAdjustmentRequest): MessageResponse {
        return stockAdjustmentService.submit(request)
    }
}