API DocsAPI Docs
get/api/group/{groupId}/joined
get/api/group/{groupId}/joined
检查用户是否已加入小组
Basic Information
Request Method:
get
Request URL:
https://www.lycoo.com/api/group/{groupId}/joined
Tags:
小组成员管理
Description
检查当前登录用户是否已加入指定小组,并返回用户的加入状态。
返回值说明:
- true: 如果用户是会员(owner、admin、member)
- false: 如果用户是 pending 状态(已申请待审批)
- null: 如果没有记录(未加入也未申请)
用途:
- 检查用户在小组中的状态
- 前端根据状态显示不同的界面元素或交互选项
Path Parameters
Path Parameters Explanation
Path parameters are variables in the URL path, for example:
https://www.lycoo.com/api/group/:groupId/joined
Parameter Name | Type | Required | Example Value | Description |
---|---|---|---|---|
groupId | string | Required | example | 小组ID |
Header Parameters
Header Parameters Explanation
Header parameters are used to pass additional information, such as authentication credentials, content type, etc.
Parameter Name | Type | Required | Example Value | Description |
---|---|---|---|---|
Authorization | string | Required | Bearer sha_1234567890abcdef... | The authentication header is used to verify the identity of API requests, containing an access token Format: Bearer {token} |
Response Example
200成功返回用户加入状态
{
"success": true,
"joined": true
}
401
404小组不存在
{
"success": false,
"message": "小组不存在"
}
500