// 年终活动第二期 主页面请求

import request from './api';

// 获取用户信息
// /ranking/user_info

export const getUserScoreInfo = () => {
	return request({
    url: `campaign/ranking/user_info`,
    method: 'post',
    withCredentials: true,
    // headers: {
    //   token: token
    // }
  })
}

// 获取已邀请的医生列表
export const getInviteList = () => {
	return request({
    url: `campaign/inviteDetail/oneList?pageNo=1&pageSize=10`,
    method: 'get',
    withCredentials: true,
    // headers: {
    //   token: token
    // }
  })
}

// 获取打卡状态
export const getClockStatus = (params) => {
	return request({
    url: `campaign/clock/${params.activityId}/status/${params.id}`,
    method: 'get',
    withCredentials: true,
  })
}

// 去打卡状态
export const goToUpdateClock = (params) => {
	return request({
    url: `campaign/clock/clock`,
    method: 'post',
    data: params,
    withCredentials: true,
  })
}



