Create & Init Project...
This commit is contained in:
20
app/admin/main/credit/model/blocked/reason.go
Normal file
20
app/admin/main/credit/model/blocked/reason.go
Normal file
@ -0,0 +1,20 @@
|
||||
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"
|
||||
}
|
Reference in New Issue
Block a user