package com.zhongshu.card.server.core.controller.feign;

import com.github.microservice.net.ResultContent;
import com.zhongshu.card.client.model.mqtt.SendMessageModel;
import com.zhongshu.card.client.model.org.OrganizationUserModel;
import com.zhongshu.card.client.model.payment.RequestInfoSaveParam;
import com.zhongshu.card.server.core.service.payment.RequestInfoService;
import io.swagger.v3.oas.annotations.Hidden;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author TRX
 * @date 2024/8/22
 */
@RestController
@RequestMapping("requestInfo/manager")
@Tag(name = "请求日志数据")
@Hidden
public class RequestInfoFeignController {

    @Autowired
    RequestInfoService requestInfoService;

    @Operation(summary = "保存请求数据", description = "保存请求数据")
    @RequestMapping(value = "saveRequestInfo", method = {RequestMethod.POST})
    public ResultContent<OrganizationUserModel> saveRequestInfo(@RequestBody RequestInfoSaveParam param) {
        return requestInfoService.saveRequestInfo(param);
    }


}



