package com.kym.service.miniapp;

import com.github.yulichang.base.MPJBaseService;
import com.kym.entity.miniapp.Attachment;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;


/**
 * <p>
 * 附件 服务类
 * </p>
 *
 * @author zuy
 * @since 2023-08-12
 */
public interface AttachmentService extends MPJBaseService<Attachment> {

    Attachment upload(MultipartFile file) throws IOException;

    void delete(String fileId);
}
