package com.yifu.cloud.plus.v1.ekp.controller;

import com.yifu.cloud.plus.v1.ekp.service.QwExcelApiService;
import com.yifu.cloud.plus.v1.ekp.service.ZhaoHangService;
import com.yifu.cloud.plus.v1.yifu.common.core.util.R;
import com.yifu.cloud.plus.v1.yifu.common.security.annotation.Inner;
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.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author fxj
 * @Description 企微智能表格API调用
 * @Date 17:44 2025/9/29
 * @Param
 * @return
**/
@RestController
@RequiredArgsConstructor
@RequestMapping("/qwExcelApi")
@Tag(name = "企微智能表格API调用")
public class QwExcelApiController {

	private final QwExcelApiService qwExcelApiService;

	/**
	 * @Author fxj
	 * @Description 企业微信智能表格API调用调试入口
	 * @Date 15:56 2025/9/26
	 * @Param
	 * @return
	 **/
	@PostMapping("/wxExcelApi")
	public void tesxWxExcelApi() {
		qwExcelApiService.wxExcelApi();

	}

	/**
	 * @Author fxj
	 * @Description 企业微信智能表格API定时任务
	 * @Date 15:56 2025/9/26
	 * @Param
	 * @return
	 **/
	@Inner
	@PostMapping("/inner/wxExcelApi")
	public void wxExcelApi() {
		qwExcelApiService.wxExcelApi();

	}

}
