24 lines
399 B
Go
24 lines
399 B
Go
package model
|
|
|
|
import (
|
|
"lone-services/pkg/modelbase"
|
|
"lone-services/services/lonelog/internal/dao"
|
|
)
|
|
|
|
type LoginModel struct {
|
|
modelbase.Base
|
|
}
|
|
|
|
func (m LoginModel) TableName() string {
|
|
return modelbase.Prefix() + "admin_login"
|
|
}
|
|
|
|
func (m LoginModel) Init() LoginModel {
|
|
m.Table = m.TableName()
|
|
return m
|
|
}
|
|
|
|
func (m LoginModel) Create(data *dao.LoginLog) error {
|
|
return m.Base.Create(data)
|
|
}
|