示例#1
0
func beforeEach() {
	e = fakeEncryptor{}
	pe = user.PasskeyEncryptor{e}
	p = pe.Encrypt(i, "passkey")
	u = user.New(i, p)
}
示例#2
0
func FromMngUser(mngu User) user.User {
	u = user.New(user.ParseId(mngu.Id), user.Passkey(mngu.Passkey))

	return u
}