36 lines
1.4 KiB
Go
36 lines
1.4 KiB
Go
package dao
|
|
|
|
import "time"
|
|
|
|
// 审核类型
|
|
const (
|
|
VerifyTypeProduct uint8 = 1 // 产品
|
|
VerifyTypeTryProduct uint8 = 2 // 试用产品
|
|
VerifyTypeAccount uint8 = 3 // 结算
|
|
VerifyTypeCompensate uint8 = 4 // 补发货
|
|
VerifyTypeRefund uint8 = 5 // 退款
|
|
)
|
|
|
|
// Verify 审核表完整字段映射
|
|
type Verify struct {
|
|
Id int `gorm:"column:id;primaryKey;autoIncrement"`
|
|
VerifyId string `gorm:"column:verify_id;type:varchar(150);default:0"`
|
|
AdminId int `gorm:"column:admin_id;type:int(11)"`
|
|
AdminName string `gorm:"column:admin_name;type:varchar(50)"`
|
|
AdminSecondId int `gorm:"column:admin_second_id;type:int(11)"`
|
|
AdminSecondName string `gorm:"column:admin_second_name;type:varchar(255)"`
|
|
Content string `gorm:"column:content;type:text;not null"`
|
|
Type uint8 `gorm:"column:type;type:tinyint(2);not null"`
|
|
VerifyStatus uint8 `gorm:"column:verify_status;type:tinyint(1);default:3;not null"`
|
|
VerifyReason string `gorm:"column:verify_reason;type:varchar(256)"`
|
|
VerifyTime time.Time `gorm:"column:verify_time;type:datetime"`
|
|
}
|
|
|
|
// VerifyCreate 创建审核记录
|
|
type VerifyCreate struct {
|
|
Id int `gorm:"column:id;primaryKey;autoIncrement"`
|
|
VerifyId string `gorm:"column:verify_id"`
|
|
Content string `gorm:"column:content"`
|
|
Type uint8 `gorm:"column:type"`
|
|
}
|