Table of Contents
6.4 关注偶像【未授权拦截通过,待登录态联调】
POST /tieup/api/v1/artists/{artist_id}/follow
鉴权:需要 Authorization: Bearer <access_token>。
无请求体。
路径参数:
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
artist_id |
integer | 是 | 艺人 ID |
响应字段:
| 字段 | 类型 | 说明 |
|---|---|---|
artist_id |
integer | 艺人 ID |
is_followed |
integer | 固定返回 1,表示已关注 |
followed_at |
string | 最近关注时间 |
unfollowed_at |
string/null | 取消关注时间;关注成功后为空 |
响应示例:
{
"code": 200,
"message": "成功",
"data": {
"artist_id": 20001,
"is_followed": 1,
"followed_at": "2026-06-22 10:00:00",
"unfollowed_at": null
}
}
说明:关注关系使用 tieup_artist_follow,与订阅权益完全解耦。订阅成功不会自动关注;重复关注保持幂等,服务端通过 fan_user_id + artist_id 唯一索引、事务和行锁保证并发安全。