lonelog to record
CI / changes (push) Successful in 35s
CI / ad (push) Successful in 3s
CI / admin (push) Successful in 1s
CI / bff (push) Successful in 1s
CI / chore (push) Successful in 2s
CI / equipment (push) Successful in 2s
CI / express (push) Successful in 2s
CI / product (push) Successful in 2s
CI / record (push) Successful in 27s
CI / sale (push) Successful in 2s
CI / task (push) Successful in 2s
CI / user (push) Successful in 2s
CI / wecom (push) Successful in 2s
CI / changes (push) Successful in 35s
CI / ad (push) Successful in 3s
CI / admin (push) Successful in 1s
CI / bff (push) Successful in 1s
CI / chore (push) Successful in 2s
CI / equipment (push) Successful in 2s
CI / express (push) Successful in 2s
CI / product (push) Successful in 2s
CI / record (push) Successful in 27s
CI / sale (push) Successful in 2s
CI / task (push) Successful in 2s
CI / user (push) Successful in 2s
CI / wecom (push) Successful in 2s
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
package model
|
||||
|
||||
import (
|
||||
"lone-services/pkg/modelbase"
|
||||
"lone-services/services/record/internal/dao"
|
||||
)
|
||||
|
||||
type ActionModel struct {
|
||||
modelbase.Base
|
||||
}
|
||||
|
||||
func (m ActionModel) TableName() string {
|
||||
return modelbase.Prefix() + "admin_action"
|
||||
}
|
||||
|
||||
func (m ActionModel) Init() ActionModel {
|
||||
m.Table = m.TableName()
|
||||
return m
|
||||
}
|
||||
|
||||
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/record/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