322f01998a
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
24 lines
405 B
Go
24 lines
405 B
Go
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)
|
|
}
|