change layout
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
package model
|
||||
|
||||
import "lone-services/pkg/modelbase"
|
||||
|
||||
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.Admin) error {
|
||||
// return m.Base.Create(data)
|
||||
//}
|
||||
Reference in New Issue
Block a user