factory worker post

This commit is contained in:
2026-09-14 14:27:20 +08:00
parent 4ff974eb8d
commit e04e82abb3
44 changed files with 4388 additions and 17 deletions
+23
View File
@@ -0,0 +1,23 @@
package model
import (
"lone-services/pkg/modelbase"
"lone-services/services/factory/internal/dao"
)
type PostModel struct {
modelbase.Base
}
func (m PostModel) TableName() string {
return modelbase.Prefix() + "post"
}
func (m PostModel) Init() PostModel {
m.Table = m.TableName()
return m
}
func (m PostModel) Create(data *dao.PostCreate) error {
return m.Base.Create(data)
}