feat: 支持ZIP压缩包上传(含密码保护)

This commit is contained in:
CHE LIANG ZHAO
2026-01-23 13:46:45 +08:00
parent 49e3176e6b
commit a97a8d6a20
22 changed files with 973 additions and 72 deletions

View File

@@ -17,6 +17,12 @@ type CleanResult struct {
Output string // 脚本输出信息
}
// ConvertResult 格式转换结果
type ConvertResult struct {
OutputPath string // 转换后的文件路径
BillType string // 检测到的账单类型: alipay/wechat
}
// Cleaner 账单清洗器接口
// 负责将原始账单数据清洗为标准格式
type Cleaner interface {
@@ -25,4 +31,9 @@ type Cleaner interface {
// outputPath: 输出文件路径
// opts: 清洗选项
Clean(inputPath, outputPath string, opts *CleanOptions) (*CleanResult, error)
// Convert 转换账单文件格式xlsx -> csv处理 GBK 编码等)
// inputPath: 输入文件路径
// 返回: 转换后的文件路径, 检测到的账单类型, 错误
Convert(inputPath string) (outputPath string, billType string, err error)
}