Files
lone-services/services/lonelog/internal/model/action.go
T
gjs dd67efe0d5
CI / changes (push) Successful in 5s
CI / docker-bff (push) Failing after 4s
CI / docker-product (push) Failing after 1s
CI / docker-admin (push) Failing after 1s
CI / docker-user (push) Failing after 1s
log watcher is done
2026-08-21 10:06:06 +08:00

24 lines
406 B
Go

package model
import (
"lone-services/pkg/modelbase"
"lone-services/services/lonelog/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)
}