feat: 支持ZIP压缩包上传(含密码保护)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user