package com.sonic.shark.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sonic.shark.domain.bo.S3StsToken;
import com.sonic.shark.domain.entity.FileUploadLog;

import java.util.List;


/**
 * 获取和业务相关的sts token数据
 * @author code
 */
public interface FileUploadLogService extends IService<FileUploadLog> {

    /**
     * 保存文件上传日志数据
     * @param userId
     * @param s3StsToken
     * @param ip
     * @param endpoint
     */
    void save(Long userId, S3StsToken s3StsToken, String ip, String endpoint);

    /**
     * 确认图片
     * @param userId
     * @param imageList
     */
    void confirm(Long userId, List<String> imageList);
}
