package com.sptg.statistics.api.feigns;

import com.baomidou.mybatisplus.plugins.Page;
import com.sptg.common.core.beans.ResultBean;
import com.sptg.statistics.api.dto.SysOperationLogDto;
import com.sptg.statistics.api.entity.SysOperationLog;
import com.sptg.statistics.api.feigns.fallback.SysOpeartionLogFeignFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * title: SysOperationLogFeign
 * package: com.sptg.statistics.api.feigns
 * description: 系统操作日志服务接口
 *
 *                
 *                
 */
@FeignClient(value = "smart-house-statistics",fallbackFactory = SysOpeartionLogFeignFallbackFactory.class)
public interface SysOperationLogFeign {

    /**
     * 功能描述:系统日志列表
     * @param solDto
     * @return ResultBean<Page<SysOperationLog>>
     *                
     *                      
     */
    @PostMapping(value = "/statistics/showSysOperationLogList")
    public ResultBean<Page<SysOperationLog>> showSysOperationLogList(@RequestBody SysOperationLogDto solDto);

    /**
     * 功能描述:根据id系统日志
     * @param id
     * @return SysOperationLog
     *
     *
     */
    @PostMapping(value = "/statistics/selectById")
    SysOperationLog selectById(@RequestBody Long id);

    /**
     * 功能描述: 插入系统操作日志
     * @param  sysOperationLog
     * @return ResultBean<Boolean>
     *                
     *                       
     */
    @PostMapping(value = "/statistics/addSysOperationLog")
    public  ResultBean<Boolean> addSysOperationLog(@RequestBody SysOperationLog sysOperationLog);

    /**
     * 功能描述:批量输出系统操作日志
     * @param sysOperationLogs
     * @return ResultBean<Boolean>
     *                
     *                       
     */
    @PostMapping(value = "/statistics/sysOperationLogsInfo")
    public  ResultBean<Boolean> info(@RequestBody List<SysOperationLog> sysOperationLogs);

    /**
     * 功能描述:输出系统操作日志
     * @param sysOperationLog
     * @return ResultBean<Boolean>
     *                
     *                       
     */
    @PostMapping(value = "/statistics/sysOperationLogInfo")
    public  ResultBean<Boolean> info(@RequestBody SysOperationLog sysOperationLog);
}
