go-common/app/admin/main/credit/model/blocked/reason.go

21 lines
636 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
package blocked
import xtime "go-common/library/time"
// Reason is blocked_reason model.
type Reason struct {
ID int `gorm:"column:id" json:"id"`
Content string `gorm:"column:content" json:"content"`
Reason string `gorm:"column:reason" json:"reason"`
Status int8 `gorm:"column:status" json:"status"`
OperID int `gorm:"column:oper_id" json:"oper_id"`
CTime xtime.Time `gorm:"column:ctime" json:"-"`
MTime xtime.Time `gorm:"column:mtime" json:"-"`
OPName string `gorm:"-" json:"oname"`
}
// TableName publish tablename
func (*Reason) TableName() string {
return "blocked_reason"
}