mirror of
https://github.com/go-admin-team/go-admin.git
synced 2026-09-21 10:13:01 +00:00
Update post.go
This commit is contained in:
@@ -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