/**
 * 签到管理API
 * 对应后端: /api/checkIn/*, /api/datacount/*
 */

import request from '@/utils/request.js'

/**
 * 获取签到记录列表
 * GET /api/checkIn/records
 */
export function getSignInRecords(params = {}) {
	return request.get('/api/checkIn/records', params)
}

/**
 * 获取签到统计
 * GET /api/checkIn/statistics
 */
export function getSignInStatistics(params = {}) {
	return request.get('/api/checkIn/statistics', params)
}

/**
 * 签到（会员扫码签到时调用）
 * POST /api/checkIn
 */
export function doCheckIn(data) {
	return request.post('/api/checkIn', data)
}

/**
 * 获取签到明细（会员维度）
 * GET /api/datacount/signin/details
 */
export function getSignInDetails(params = {}) {
	return request.get('/api/datacount/signin/details', params)
}
