Documentation ¶
Index ¶
- Constants
- func Add(email string, name string, pass string) (uint, error)
- func AddForgetPassword(email string, keyword string) error
- func DeleteByEmail(email string) error
- func GetByEmail(email string) (models.UserMaster, error)
- func GetByEmailAndPassword(email string, password string) (u models.UserMaster, err error)
- func GetForgetPasswordByEmail(email string) (models.UserForgetPassword, error)
- func GetIDAndAddProfileImage(uID int) (uint, error)
- func GetMaptByUserIDList(userIDList []int) (map[int]User, error)
- func GetPassword(pass string) string
- func IsUpdatePassword(email string, keyword string) (bool, error)
- func Upadate(uID int, n string) error
- func UpadateToPassword(email string, password string) error
- func UpadateToProfileImageID(uID int, pID int) error
- type Profile
- type User
Constants ¶
View Source
const PasswordMinLength = 8
PasswordMinLength パスワードの最低文字数
Variables ¶
This section is empty.
Functions ¶
func AddForgetPassword ¶
AddForgetPassword 忘れたパスワードを追加する
func GetByEmailAndPassword ¶
func GetByEmailAndPassword(email string, password string) (u models.UserMaster, err error)
GetByEmailAndPassword メールアドレスとパスワードから取得する
func GetForgetPasswordByEmail ¶
func GetForgetPasswordByEmail(email string) (models.UserForgetPassword, error)
GetForgetPasswordByEmail メールアドレスから忘れたパスワードを取得する
func GetIDAndAddProfileImage ¶
GetIDAndAddProfileImage プロフィール画像を追加してIDを取得する
func GetMaptByUserIDList ¶
GetMaptByUserIDList ユーザIDリストからマップを取得する
func IsUpdatePassword ¶
IsUpdatePassword パスワードが更新可能か判定する
func UpadateToPassword ¶
UpadateToPassword パスワードを更新する
func UpadateToProfileImageID ¶
UpadateToProfileImageID プロフィール画像IDを更新する
Types ¶
Click to show internal directories.
Click to hide internal directories.