35 lines
1.1 KiB
Go
35 lines
1.1 KiB
Go
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"`
|
|
Image
|
|
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"
|
|
}
|
|
|
|
func NewServiceSolutionCase() *ServiceSolutionCase {
|
|
return &ServiceSolutionCase{}
|
|
}
|