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

This commit is contained in:
2026-09-03 20:12:06 +08:00
parent 9fb4f568d4
commit 322f01998a
20 changed files with 27 additions and 27 deletions
+23
View File
@@ -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)
}
+23
View File
@@ -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)
}