Files
2026-09-15 15:23:30 +08:00

62 lines
4.9 KiB
Go

package dao
import "lone-services/pkg/utils"
type DepositCreate struct {
Id int64 `gorm:"column:id;type:int(11);primary_key;AUTO_INCREMENT" json:"id"`
StoreId int64 `gorm:"column:store_id;type:int(11);comment:门店ID;NOT NULL" json:"store_id"`
Bill string `gorm:"column:bill;type:varchar(255);comment:票据,一张照片" json:"bill"`
Amount float64 `gorm:"column:amount;type:decimal(10,2);default:0.00;comment:金额" json:"amount"`
Status int32 `gorm:"column:status;type:tinyint(1);comment:状态,1为完成,9为充值中,2为忽略,4已到帐" json:"status"`
}
type DepositInfo struct {
Id int64 `gorm:"column:id;type:int(11);primary_key;AUTO_INCREMENT" json:"id"`
StoreId int64 `gorm:"column:store_id;type:int(11);comment:门店ID;NOT NULL" json:"store_id"`
Bill string `gorm:"column:bill;type:varchar(255);comment:票据,一张照片" json:"bill"`
Amount float64 `gorm:"column:amount;type:decimal(10,2);default:0.00;comment:金额" json:"amount"`
AffirmAmount float64 `gorm:"column:affirm_amount;type:decimal(10,2);comment:确认的金额" json:"affirm_amount"`
Status int32 `gorm:"column:status;type:tinyint(1);comment:状态,1为完成,9为充值中,2为忽略,4已到帐" json:"status"`
Reason string `gorm:"column:reason;type:varchar(255);comment:忽略原因" json:"reason"`
AccountantId int64 `gorm:"column:accountant_id;type:int(11)" json:"accountant_id"`
AccountantName string `gorm:"column:accountant_name;type:varchar(255)" json:"accountant_name"`
AdminName string `gorm:"column:admin_name;type:varchar(50);comment:操作人姓名" json:"admin_name"`
AdminId int64 `gorm:"column:admin_id;type:int(11);default:0;comment:操作人ID" json:"admin_id"`
UpdateTime utils.CustomTime `gorm:"column:update_time;type:datetime;default:CURRENT_TIMESTAMP;comment:更新时间" json:"update_time"`
CreateTime utils.CustomTime `gorm:"column:create_time;type:datetime;default:CURRENT_TIMESTAMP;comment:添加时间" json:"create_time"`
StoreName string `gorm:"-" json:"store_name"`
}
type DepositWebInfo struct {
Id int64 `gorm:"column:id;type:int(11);primary_key;AUTO_INCREMENT" json:"id"`
Bill string `gorm:"column:bill;type:varchar(255);comment:票据,一张照片" json:"bill"`
Amount float64 `gorm:"column:amount;type:decimal(10,2);default:0.00;comment:金额" json:"amount"`
AffirmAmount float64 `gorm:"column:affirm_amount;type:decimal(10,2);comment:确认的金额" json:"affirm_amount"`
Reason string `gorm:"column:reason;type:varchar(255);comment:忽略原因" json:"reason"`
Status int32 `gorm:"column:status;type:tinyint(1);comment:状态,1为完成,9为充值中,2为忽略,4已到帐" json:"status"`
UpdateTime utils.CustomTime `gorm:"column:update_time;type:datetime;default:CURRENT_TIMESTAMP;comment:更新时间" json:"update_time"`
CreateTime utils.CustomTime `gorm:"column:create_time;type:datetime;default:CURRENT_TIMESTAMP;comment:添加时间" json:"create_time"`
}
type DepositStatus struct {
Id int64 `gorm:"column:id;type:int(11);primary_key;AUTO_INCREMENT" json:"id"`
StoreId int64 `gorm:"column:store_id;type:int(11);comment:门店ID;NOT NULL" json:"store_id"`
Status int32 `gorm:"column:status;type:tinyint(1);default:9;comment:9是待处理 1是已通过 2是未通过,3为禁用;NOT NULL" json:"status"`
Reason string `gorm:"column:reason;type:varchar(255);comment:忽略原因" json:"reason"`
Amount float64 `gorm:"column:amount;type:decimal(10,2);default:0.00;comment:金额" json:"amount"`
AffirmAmount float64 `gorm:"column:affirm_amount;type:decimal(10,2);comment:确认的金额" json:"affirm_amount"`
AccountantId int64 `gorm:"column:accountant_id;type:int(11)" json:"accountant_id"`
AccountantName string `gorm:"column:accountant_name;type:varchar(255)" json:"accountant_name"`
AdminId int64 `gorm:"column:admin_id;type:int(11);default:0;comment:操作人ID" json:"admin_id"`
AdminName string `gorm:"column:admin_name;type:varchar(255)" json:"admin_name"`
}
type DepositDown struct {
Id int64 `gorm:"column:id;type:int(11);primary_key;AUTO_INCREMENT" json:"id"`
StoreId int64 `gorm:"column:store_id;type:int(11);comment:门店ID;NOT NULL" json:"store_id"`
Bill string `gorm:"column:bill;type:varchar(255);comment:票据,一张照片" json:"bill"`
Amount float64 `gorm:"column:amount;type:decimal(10,2);default:0.00;comment:金额" json:"amount"`
CreateTime utils.CustomTime `gorm:"column:create_time;type:datetime;default:CURRENT_TIMESTAMP;comment:添加时间" json:"create_time"`
StoreName string `gorm:"-" json:"store_name"`
}