123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- 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'
- })
- }
- /*
- * 修改个人信息
- * @param {Object} data = {loginName用户名|pwd密码|name昵称|sex性别|phone手机号|email邮箱|portrait头像|organizationId组织类型}
- *
- */
- export function updateUserDetails(data) {
- return request({
- url: `/manager/userInfo/update`,
- method: 'post',
- data: data
- })
- }
- /*
- * 用户是否关注
- *
- *
- */
- 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'
- })
- }
- /*
- * 获取客户列表
- *
- */
- export function getCustomerListByPage(data) {
- return request({
- url: `/manager/client/${data.currPage}/${data.pageSize}`,
- method: 'post',
- data: data
- })
- }
- /*
- * 获取客户详情
- *
- *
- */
- export function getCustomerDetailById(id) {
- return request({
- url: `/manager/client/${id}`,
- method: 'get'
- })
- }
|