Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindUserById ¶
func FindUserById(id string) (*apistructs.UserInfoDto, error)
func FindUserByIdWithDesensitize ¶
func FindUserByIdWithDesensitize(id string) (*apistructs.UserInfoDto, error)
func InitializeUcClient ¶ added in v1.3.0
Types ¶
type UserInfo ¶
type UserInfo struct { Name string `json:"name,omitempty"` Username string `json:"username,omitempty"` Nickname string `json:"nickname,omitempty"` AvatarUrl string `json:"avatar_url,omitempty"` UserId interface{} `json:"user_id,omitempty"` }
func ListUserByIds ¶
userIds like user_id:12345, ... TODO 等 uc 2.0 支持。 目前未支持
type UserInfoDto ¶
type UserInfoDto struct { AvatarUrl string `json:"avatarUrl,omitempty"` Email string `json:"email,omitempty"` UserId interface{} `json:"id,omitempty"` NickName string `json:"nickName,omitempty"` Phone string `json:"phone,omitempty"` RealName string `json:"realName,omitempty"` Username string `json:"username,omitempty"` }
uc 2.0
func (*UserInfoDto) Convert ¶
func (u *UserInfoDto) Convert() (string, error)
func (*UserInfoDto) GetUsername ¶
func (u *UserInfoDto) GetUsername() string
Click to show internal directories.
Click to hide internal directories.