- User.GetMobile and User.GetEmail bug修改
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user