修改,兼容go-admin sdk方案

This commit is contained in:
linwenxiang committed 2021-03-09 19:12:49 +08:00
1 parent c541d09076
commit 25d8364bf4
151 files changed
+578 -3525

No files matched your search

+1 -1
View File
@@ -27,4 +27,4 @@ type ModelTime struct {
CreatedAt time.Time `json:"createdAt" gorm:"comment:创建时间"`
UpdatedAt time.Time `json:"updatedAt" gorm:"comment:最后更新时间"`
DeletedAt gorm.DeletedAt `json:"-" gorm:"index;comment:删除时间"`
}
}
+1 -1
View File
@@ -27,4 +27,4 @@ func (res *Response) ReturnOK() *Response {
func (res *Response) ReturnError(code int) *Response {
res.Code = code
return res
}
}
+1 -1
View File
@@ -3,7 +3,7 @@ package models
import (
"gorm.io/gorm"
"go-admin/pkg"
"github.com/go-admin-team/go-admin-core/sdk/pkg"
)
// BaseUser 密码登录基础用户