Update post.go
This commit is contained in:
1 parent
f8013301ad
commit
ffbeacb25a
1 file changed
+1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user