Files
cas_tt_cloud_backend/app/common/model/service_solution_case.go
2022-01-10 17:43:43 +08:00

25 lines
915 B
Go

package model
// ServiceSolutionCase 服务解决案例数据模型
type ServiceSolutionCase struct {
Model
ModelTenant
KindID uint64 `gorm:"column:kind_id;type:int(11);default:0;comment:类型ID" json:"-"`
Title string `gorm:"column:title;type:varchar(100);default:'';comment:标题" json:"title"`
Image
Description string `gorm:"column:description;type:varchar(255);comment:描述" json:"description"`
Content string `gorm:"column:content;type:text;comment:内容" json:"content"`
Visits int `gorm:"column:visits;type:int(6);default:0;comment:浏览数" json:"visits"`
Sort int `gorm:"column:sort;type:tinyint(3);default:0;comment:排序,数值越小,优先排序" json:"sort"`
ModelDeleted
ModelAt
}
func (m *ServiceSolutionCase) TableName() string {
return "service_solution_case"
}
func NewServiceSolutionCase() *ServiceSolutionCase {
return &ServiceSolutionCase{}
}