Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = sqlx.ErrNotFound
View Source
var (
ErrPasswordEmpty = errors.New("password can't empty")
)
Functions ¶
This section is empty.
Types ¶
type NoteUserModel ¶
type NoteUserModel interface { Insert(data *NoteUser) (sql.Result, error) CheckPassword(name, password string) (*NoteUser, error) FindOne(id int64) (*NoteUser, error) Update(data *NoteUser) error Delete(id int64) error }
func NewNoteUserModel ¶
func NewNoteUserModel(conn sqlx.SqlConn, c cache.CacheConf) NoteUserModel
Click to show internal directories.
Click to hide internal directories.