package com.njcn.system.api;

import com.njcn.common.pojo.annotation.OperateInfo;
import com.njcn.common.pojo.constant.OperateType;
import com.njcn.common.pojo.constant.ServerInfo;
import com.njcn.common.pojo.dto.LogInfoDTO;
import com.njcn.common.pojo.enums.common.LogEnum;
import com.njcn.common.pojo.response.HttpResult;
import com.njcn.system.api.fallback.FrontLogsFeignClientFallbackFactory;
import com.njcn.system.api.fallback.UserLogFeignClientFallbackFactory;
import com.njcn.system.pojo.dto.PqFrontLogsDTO;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author hongawen
 * @version 1.0.0
 * @date 2022年07月12日 15:20
 */
@FeignClient(value = ServerInfo.SYSTEM,path = "/frontLog",fallbackFactory = FrontLogsFeignClientFallbackFactory.class,contextId = "frontLog")
public interface FrontLogsFeignClient {

    /**
     * 插入前置日志
     *
     */
    @PostMapping("/add")
    HttpResult<Object> addFrontLogs(@RequestBody PqFrontLogsDTO pqFrontLogsDTO);

}
