|
@@ -46,18 +46,19 @@ func (u *User) Update(cols []string) (err error) {
|
|
|
}
|
|
|
|
|
|
type UserView struct {
|
|
|
- Headimgurl string `description:"用户头像,最后一个数值代表正方形头像大小(有0、46、64、96、132数值可选,0代表640*640正方形头像),用户没有头像时该项为空"`
|
|
|
- RealName string `description:"用户实际名称"`
|
|
|
- Phone string `description:"手机号码"`
|
|
|
- AreaCode string `description:"区号"`
|
|
|
- SellerDepartmentName string `description:"营业部名称"`
|
|
|
- Email string `description:"邮箱"`
|
|
|
- Componey string `description:"所属公司"`
|
|
|
- HasPermission string `description:"拥有权限"`
|
|
|
- ValidEndTime string `description:"服务截至时间"`
|
|
|
- IsRegistered bool `description:"是否注册:1:已注册,0:未注册"`
|
|
|
- Status int `description:"用户类型: 0表示禁用,1表示潜在客户,2表示正式客户"`
|
|
|
- ApplyStatus int `description:"申请状态: 0表示未申请,1表示已申请"`
|
|
|
+ Headimgurl string `description:"用户头像,最后一个数值代表正方形头像大小(有0、46、64、96、132数值可选,0代表640*640正方形头像),用户没有头像时该项为空"`
|
|
|
+ RealName string `description:"用户实际名称"`
|
|
|
+ Phone string `description:"手机号码"`
|
|
|
+ AreaCode string `description:"区号"`
|
|
|
+ SellerDepartmentName string `description:"营业部名称"`
|
|
|
+ SellerDepartmentPhone []string `description:"营业部电话"`
|
|
|
+ Email string `description:"邮箱"`
|
|
|
+ Componey string `description:"所属公司"`
|
|
|
+ HasPermission string `description:"拥有权限"`
|
|
|
+ ValidEndTime string `description:"服务截至时间"`
|
|
|
+ IsRegistered bool `description:"是否注册:1:已注册,0:未注册"`
|
|
|
+ Status int `description:"用户类型: 0表示禁用,1表示潜在客户,2表示正式客户"`
|
|
|
+ ApplyStatus int `description:"申请状态: 0表示未申请,1表示已申请"`
|
|
|
}
|
|
|
|
|
|
func GetUserByToken(token string) (item *User, err error) {
|