需要 read_store_staff 权限点。
接口访问需要令牌,具体如何获取令牌请参考:身份认证
查询店铺指定员工的信息。你可以使用 UID 查询员工名称、电话、邮箱等信息。
Arguments
uid ● ID!non-null
员工的唯一 ID。
Return
uid ● ID
员工的唯一 ID。
phone ● String
员工的手机号。
name ● String
员工的名称。
active ● Boolean!non-null
当前员工账号是否已激活。
  • true: 已激活
  • false: 待激活
isShopOwner ● Boolean!non-null
是否为店铺的店主。
  • true:是店铺的店主。
  • false:不是店铺的店主。
email ● String
员工的邮箱。
错误码
关于更多通用错误码说明,参考:状态码和错误码
Example
查询店铺指定员工的信息。
query MyQuery {
staffMember(
uid: "111"
) {
uid
phone
name
active
isShopOwner
email
}
}
Response
{
"data": {
"active": true,
"email": "test@163.com",
"isShopOwner": true,
"name": "test",
"phone": "13000000000",
"uid": "111"
}
}
这篇文章对你有帮助吗?