users.go 223 B

1234567891011121314
  1. package users
  2. import "github.com/gogf/gf/v2/crypto/gmd5"
  3. type Users struct {
  4. }
  5. func New() *Users {
  6. return &Users{}
  7. }
  8. func (u *Users) encryptPassword(password string) string {
  9. return gmd5.MustEncryptString(password)
  10. }