123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- import {
- request
- } from '@/request/request.js';
- /*
- * 获取关注数量
- *
- *
- */
- export function getMyCount() {
- return request({
- url: `/api/fans/count`,
- method: 'get'
- })
- }
- /*
- * 获取用户信息
- *
- *
- */
- export function getUserInfoById(userId) {
- return request({
- url: `/manager/userInfo/${userId}`,
- method: 'get'
- })
- }
- /*
- * 用户是否关注
- *
- *
- */
- export function isFans(userId) {
- return request({
- url: `/api/fans/attention/${userId}`,
- method: 'get'
- })
- }
- /*
- * 关注用户
- *
- *
- */
- export function attention(userId) {
- return request({
- url: `/api/fans/${userId}`,
- method: 'get'
- })
- }
- /*
- * 取消关注
- *
- *
- */
- export function cancelAttention(userId) {
- return request({
- url: `/api/fans/${userId}`,
- method: 'delete'
- })
- }
- /*
- * 获取粉丝列表
- *
- *
- */
- export function getFansListByPage(currPage, pageSize) {
- return request({
- url: `/api/fans/${currPage}/${pageSize}`,
- method: 'get'
- })
- }
- /*
- * 获取关注列表
- *
- *
- */
- export function getFansAttentionListByPage(currPage, pageSize) {
- return request({
- url: `/api/fans/attention/${currPage}/${pageSize}`,
- method: 'get'
- })
- }
|