- README/CHANGELOG: add v1.0.7 entry\n- Server: JWT expiry validated server-side (401 codes)\n- Web: logout/redirect on 401; proxy forwards Authorization\n- Server: bill service uses repository consistently
46 lines
1.8 KiB
Go
46 lines
1.8 KiB
Go
package model
|
|
|
|
// UploadData 上传响应数据
|
|
type UploadData struct {
|
|
BillType string `json:"bill_type,omitempty"` // alipay/wechat
|
|
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"` // 重复跳过的记录数
|
|
}
|
|
|
|
// 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"`
|
|
}
|