47 lines
2.0 KiB
Go
47 lines
2.0 KiB
Go
package model
|
|
|
|
// UploadData 上传响应数据
|
|
type UploadData struct {
|
|
BillType string `json:"bill_type,omitempty"` // alipay/wechat/jd
|
|
FileURL string `json:"file_url,omitempty"` // 下载链接
|
|
FileName string `json:"file_name,omitempty"` // 文件名
|
|
RawCount int `json:"raw_count,omitempty"` // 存储到原始数据集合的记录数
|
|
CleanedCount int `json:"cleaned_count,omitempty"` // 存储到清洗后数据集合的记录数
|
|
DuplicateCount int `json:"duplicate_count,omitempty"` // 重复跳过的记录数
|
|
JDRelatedDeleted int64 `json:"jd_related_deleted,omitempty"` // 软删除的京东关联记录数(其他来源中描述包含京东订单号的记录)
|
|
}
|
|
|
|
// UploadResponse 上传响应
|
|
type UploadResponse struct {
|
|
Result bool `json:"result"`
|
|
Message string `json:"message"`
|
|
Data *UploadData `json:"data,omitempty"`
|
|
}
|
|
|
|
// ReviewRecord 需要复核的记录
|
|
type ReviewRecord struct {
|
|
Time string `json:"time"` // 交易时间
|
|
Category string `json:"category"` // 交易分类
|
|
Merchant string `json:"merchant"` // 交易对方
|
|
Description string `json:"description"` // 商品说明
|
|
IncomeExpense string `json:"income_expense"` // 收/支
|
|
Amount string `json:"amount"` // 金额
|
|
Remark string `json:"remark"` // 备注
|
|
ReviewLevel string `json:"review_level"` // 复核等级: HIGH/LOW
|
|
}
|
|
|
|
// ReviewData 复核响应数据
|
|
type ReviewData struct {
|
|
Total int `json:"total"` // 总数
|
|
High int `json:"high"` // 高优先级数量
|
|
Low int `json:"low"` // 低优先级数量
|
|
Records []ReviewRecord `json:"records,omitempty"` // 需要复核的记录
|
|
}
|
|
|
|
// ReviewResponse 复核记录响应
|
|
type ReviewResponse struct {
|
|
Result bool `json:"result"`
|
|
Message string `json:"message"`
|
|
Data *ReviewData `json:"data,omitempty"`
|
|
}
|