package com.xindazhou.message.api;

import com.xindazhou.framework.common.pojo.CommonResult;
import com.xindazhou.message.api.dto.record.MessageRecordRespDTO;
import com.xindazhou.message.enums.ApiConstants;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 消息记录 API
 *
 * @author xindazhou
 */
@FeignClient(name = ApiConstants.NAME)
@Tag(name = "RPC 服务 - 消息记录")
public interface MessageRecordApi {

    String PREFIX = "/rpc-api/message/record";

    @GetMapping(PREFIX + "/get")
    @Operation(summary = "获取消息记录")
    @Parameter(name = "id", description = "消息记录编号", required = true, example = "1")
    CommonResult<MessageRecordRespDTO> getMessageRecord(@RequestParam("id") Long id);

}

