This commit is contained in:
zhangwenjian committed 2020-04-01 14:39:27 +08:00
1 parent 315475c38f
commit 119facec02
15 files changed
+64 -105

No files matched your search

+1
View File
@@ -45,6 +45,7 @@ type Post struct {
func (e *Post) Create() (Post, error) {
var doc Post
e.CreateTime = utils.GetCurrntTime()
e.UpdateTime = utils.GetCurrntTime()
result := orm.Eloquent.Table("sys_post").Create(&e)
if result.Error != nil {
err := result.Error