feat:完善项目管理

This commit is contained in:
henry
2021-12-16 09:44:59 +08:00
parent a59759379c
commit 8ab89cc051
7 changed files with 129 additions and 4 deletions

View File

@ -0,0 +1,19 @@
package model
// ServiceMessage 留言数据模型
type ServiceMessage struct {
Model
Name string `gorm:"column:name;type:varchar(20);default:'';comment:联系人" json:"name"`
Mobile string `gorm:"column:mobile;type:varchar(15);default:'';comment:联系方式" json:"mobile"`
Content string `gorm:"column:content;type:varchar(255);default:'';comment:联系内容" json:"content"`
ModelDeleted
ModelAt
}
func (m *ServiceMessage) TableName() string {
return "service_message"
}
func NewServiceMessage() *ServiceMessage {
return &ServiceMessage{}
}