28 lines
478 B
Go
28 lines
478 B
Go
package impl
|
|
|
|
import (
|
|
"geo/internal/data/model"
|
|
"geo/tmpl/dataTemp"
|
|
"geo/utils"
|
|
)
|
|
|
|
type LoginRelationImpl struct {
|
|
dataTemp.DataTemp
|
|
db *utils.Db
|
|
}
|
|
|
|
func NewLoginRelationImpl(db *utils.Db) *LoginRelationImpl {
|
|
return &LoginRelationImpl{
|
|
DataTemp: *dataTemp.NewDataTemp(db, new(model.LoginRelation)),
|
|
db: db,
|
|
}
|
|
}
|
|
|
|
func (m *LoginRelationImpl) PrimaryKey() string {
|
|
return "id"
|
|
}
|
|
|
|
func (m *LoginRelationImpl) GetTemp() *dataTemp.DataTemp {
|
|
return &m.DataTemp
|
|
}
|