feat:完善网站信息,修改留言信息模块
This commit is contained in:
@ -10,10 +10,12 @@ type Message struct{}
|
||||
type MessageHandle func() *Message
|
||||
|
||||
// Form 留言发起
|
||||
func (c *Message) Form(name, mobile, content string) error {
|
||||
func (c *Message) Form(name, mobile, email, company, content string) error {
|
||||
mServiceMessage := model.NewServiceMessage()
|
||||
mServiceMessage.Name = name
|
||||
mServiceMessage.Mobile = mobile
|
||||
mServiceMessage.Email = email
|
||||
mServiceMessage.Company = company
|
||||
mServiceMessage.Content = content
|
||||
return model2.Create(mServiceMessage.ServiceMessage)
|
||||
}
|
||||
|
Reference in New Issue
Block a user