package top.continew.admin.controller.business;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import top.continew.admin.business.model.req.OrderAudioReq;
import top.continew.admin.business.service.OrderAudioService;
import top.continew.starter.web.model.R;

/**
 * @author hzy
 * @since 2025/10/22 12:26
 */
@Tag(name = "音频任务订单 API")
@RestController
@RequiredArgsConstructor
@RequestMapping(value = "/audio")
public class OrderAudioController {

    private final OrderAudioService orderAudioService;

    @Operation(summary = "创建音频任务订单", description = "创建音频任务订单")
    @PostMapping("/add")
    public R add(@RequestBody OrderAudioReq req) {
        orderAudioService.add(req);
        return R.ok();
    }
}
