- User.GetMobile and User.GetEmail bug修改

This commit is contained in:
gazebo
2019-09-03 15:51:15 +08:00
parent dad8adc4bf
commit 9bff8840e5

View File

@@ -1,5 +1,7 @@
package model package model
import "git.rosy.net.cn/baseapi/utils"
const ( const (
UserStatusNormal = 1 UserStatusNormal = 1
UserStatusDisabled = 2 UserStatusDisabled = 2
@@ -54,11 +56,11 @@ func (user *User) GetID2() string {
} }
func (user *User) GetMobile() string { func (user *User) GetMobile() string {
return *user.Mobile return utils.Pointer2String(user.Mobile)
} }
func (user *User) GetEmail() string { func (user *User) GetEmail() string {
return *user.Email return utils.Pointer2String(user.Email)
} }
func (user *User) GetName() string { func (user *User) GetName() string {