Documentation
¶
Index ¶
- Constants
- Variables
- type User
- type UserEntity
- func (c *UserEntity) GetName() string
- func (c *UserEntity) GetNick() string
- func (c *UserEntity) GetSecret() sql.NullString
- func (c *UserEntity) GetTotp() sql.NullString
- func (c *UserEntity) SetName(v string) bool
- func (c *UserEntity) SetNick(v string) bool
- func (c *UserEntity) SetSecret(v sql.NullString) bool
- func (c *UserEntity) SetTotp(v sql.NullString) bool
- type UserStore
Constants ¶
View Source
const ( // UserNick generate for User.Nick <nick::string> UserNick modeler.FIELD = 9 // UserName generate for User.Name <name::string> UserName modeler.FIELD = 10 // UserSecret generate for User.Secret <secret::sql.NullString> UserSecret modeler.FIELD = 11 // UserTotp generate for User.Totp <totp::sql.NullString> UserTotp modeler.FIELD = 12 )
Variables ¶
View Source
var (
UserFields modeler.EntityInfo[int64, User]
)
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct { modeler.FullModelEntity[int64] Nick string `db:"nick" json:"nick"` Name string `db:"name" json:"name"` Secret sql.NullString `db:"secret" json:"secret"` Totp sql.NullString `db:"totp" json:"totp"` }
func (*User) CheckSecret ¶
type UserEntity ¶
type UserEntity struct { User modeler.BaseEntity[int64, User] }
func (*UserEntity) GetName ¶
func (c *UserEntity) GetName() string
func (*UserEntity) GetNick ¶
func (c *UserEntity) GetNick() string
func (*UserEntity) GetSecret ¶
func (c *UserEntity) GetSecret() sql.NullString
func (*UserEntity) GetTotp ¶
func (c *UserEntity) GetTotp() sql.NullString
func (*UserEntity) SetName ¶
func (c *UserEntity) SetName(v string) bool
func (*UserEntity) SetNick ¶
func (c *UserEntity) SetNick(v string) bool
func (*UserEntity) SetSecret ¶
func (c *UserEntity) SetSecret(v sql.NullString) bool
func (*UserEntity) SetTotp ¶
func (c *UserEntity) SetTotp(v sql.NullString) bool
type UserStore ¶
type UserStore struct { modeler.SqlxExecutor // contains filtered or unexported fields }
func (*UserStore) ById ¶
func (s *UserStore) ById(id int64) *UserEntity
func (*UserStore) ByName ¶
func (s *UserStore) ByName(name string) *UserEntity
Click to show internal directories.
Click to hide internal directories.