package cn.sikey.tools.controller.app.agora;

import cn.sikey.framework.common.pojo.CommonResult;
import cn.sikey.tools.controller.app.agora.vo.DabizLicenseV2ActiveReqVO;
import cn.sikey.tools.service.agora.AgoraService;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
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;


/**
 * @Author: qin
 * @Date: 2025/3/31
 * @Description: 声网服务
 */
@RestController
@RequestMapping("/tools/agora")
@Slf4j
public class AgoraController {

    @Resource
    private AgoraService agoraService;

    /**
     * 激活
     *
     * @param dabizLicenseV2ActiveReqVO 激活
     * @return
     */
    @PostMapping("/dabiz/license/v2/active")
    public CommonResult dabizLicenseV2Active(@RequestBody @Validated DabizLicenseV2ActiveReqVO dabizLicenseV2ActiveReqVO) {
        return agoraService.dabizLicenseV2Active(dabizLicenseV2ActiveReqVO);
    }
}
