24 lines
459 B
Go
24 lines
459 B
Go
package repository
|
|
|
|
import (
|
|
"Blog/bootstrap"
|
|
"Blog/internal/consts"
|
|
"Blog/internal/model"
|
|
)
|
|
|
|
var VersionRepository *versionRepository = newVersionRepository()
|
|
|
|
type versionRepository struct {
|
|
*baseRep[model.SysVersion]
|
|
}
|
|
|
|
func newVersionRepository() *versionRepository {
|
|
return &versionRepository{
|
|
&baseRep[model.SysVersion]{
|
|
DB: bootstrap.BlogDB.Gorm,
|
|
Mutex: bootstrap.BlogDB.Mutex,
|
|
TableName: consts.TABLE_SYS_VERSION,
|
|
},
|
|
}
|
|
}
|