log watcher is done
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
package model
|
||||
|
||||
import "lone-services/pkg/modelbase"
|
||||
import (
|
||||
"lone-services/pkg/modelbase"
|
||||
"lone-services/services/lonelog/internal/dao"
|
||||
)
|
||||
|
||||
type ActionModel struct {
|
||||
modelbase.Base
|
||||
@@ -15,6 +18,6 @@ func (m ActionModel) Init() ActionModel {
|
||||
return m
|
||||
}
|
||||
|
||||
//func (m ActionModel) Create(data *dao.Admin) error {
|
||||
// return m.Base.Create(data)
|
||||
//}
|
||||
func (m ActionModel) Create(data *dao.ActionLog) error {
|
||||
return m.Base.Create(data)
|
||||
}
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
package model
|
||||
|
||||
import (
|
||||
"lone-services/pkg/modelbase"
|
||||
"lone-services/services/lonelog/internal/dao"
|
||||
)
|
||||
|
||||
type LoginModel struct {
|
||||
modelbase.Base
|
||||
}
|
||||
|
||||
func (m LoginModel) TableName() string {
|
||||
return modelbase.Prefix() + "admin_login"
|
||||
}
|
||||
|
||||
func (m LoginModel) Init() LoginModel {
|
||||
m.Table = m.TableName()
|
||||
return m
|
||||
}
|
||||
|
||||
func (m LoginModel) Create(data *dao.LoginLog) error {
|
||||
return m.Base.Create(data)
|
||||
}
|
||||
Reference in New Issue
Block a user