package com.docus.server.api.archivefile;

import com.docus.infrastructure.web.request.SearchRequest;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.entity.TaskMessageRetryLog;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;


/**
 * 任务消息重试表 API
 * Generated on 2023-06-28
 */
@Api(value = "被动消息任务重试日志管理接口", tags = "被动消息任务重试日志管理接口")
@FeignClient(value = "docus-collector-api", contextId = "docus-collector-api.TaskMessageRetryLogApi")
@RequestMapping("/collect/taskMessageRetryLog")
public interface TaskMessageRetryLogApi {

    /**
     * 按主键查询
     *
     * @param id 主键id
     * @return 实体
     */
    @ApiOperation("按主键查询")
    @GetMapping("/find/{id}")
    TaskMessageRetryLog find(@PathVariable(value = "id") String id);

    /*
     * 关键字搜素
     * @param searchRequest 搜索参数
     * @return 分页列表
     */
    @ApiOperation("关键字搜素")
    @PostMapping("/search")
    PageResult<TaskMessageRetryLog> search(@RequestBody SearchRequest searchRequest);

}
