feat: internal product items
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
package model
|
||||
|
||||
import "lone-services/pkg/modelbase"
|
||||
|
||||
type DocumentModel struct {
|
||||
modelbase.Base
|
||||
}
|
||||
|
||||
func (m DocumentModel) TableName() string {
|
||||
return modelbase.Prefix() + "document"
|
||||
}
|
||||
|
||||
func (m DocumentModel) Init() DocumentModel {
|
||||
m.Table = m.TableName()
|
||||
return m
|
||||
}
|
||||
Reference in New Issue
Block a user