feat:完善网站信息,增加案例解决方案数据管理
This commit is contained in:
34
app/common/model/service_solution_case.go
Normal file
34
app/common/model/service_solution_case.go
Normal file
@ -0,0 +1,34 @@
|
||||
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{}
|
||||
}
|
Reference in New Issue
Block a user