go-common/app/service/live/resource/model/user_resource.go

23 lines
642 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
package model
import "time"
// UserResource def
type UserResource struct {
ID int32 `json:"id" gorm:"id"`
ResType int32 `json:"res_type" form:"res_type"`
CustomID int32 `json:"custom_id" form:"custom_id"`
Title string `json:"title" form:"title"`
URL string `json:"url" form:"url"`
Weight int32 `json:"weight" form:"weight"`
Status int32 `json:"status" form:"status"`
Creator string `json:"creator" form:"creator"`
Ctime time.Time `json:"ctime"`
Mtime time.Time `json:"mtime"`
}
// TableName user_resource
func (c UserResource) TableName() string {
return "user_resource"
}