feat:完善项目信息
This commit is contained in:
@ -3,28 +3,18 @@ package model
|
||||
// ServiceSolutionCase 服务解决案例数据模型
|
||||
type ServiceSolutionCase struct {
|
||||
Model
|
||||
Kind ServiceSolutionCaseKind `gorm:"column:kind;type:tinyint(3);default:0;comment:类型" json:"kind"`
|
||||
Title string `gorm:"column:title;type:varchar(20);default:'';comment:标题" json:"title"`
|
||||
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
|
||||
Sort int `gorm:"column:sort;type:tinyint(3);default:0;comment:排序,数值越大,优先排序" json:"sort"`
|
||||
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
|
||||
}
|
||||
|
||||
// ServiceSolutionCaseKind 服务解决方案类型
|
||||
type ServiceSolutionCaseKind int
|
||||
|
||||
const (
|
||||
// ServiceSolutionCaseKindForSmallCompany 中小型企业
|
||||
ServiceSolutionCaseKindForSmallCompany ServiceSolutionCaseKind = iota + 101
|
||||
// ServiceSolutionCaseKindForBigCompany 大型企业
|
||||
ServiceSolutionCaseKindForBigCompany
|
||||
// ServiceSolutionCaseKindForGovernment 政府单位
|
||||
ServiceSolutionCaseKindForGovernment
|
||||
// ServiceSolutionCaseKindForResearch 科研机构
|
||||
ServiceSolutionCaseKindForResearch
|
||||
)
|
||||
|
||||
func (m *ServiceSolutionCase) TableName() string {
|
||||
return "service_solution_case"
|
||||
}
|
||||
|
Reference in New Issue
Block a user