30 lines
731 B
TypeScript
30 lines
731 B
TypeScript
import { get, post } from '@/api/request'
|
|
|
|
export function getSignInRecords(params: any) {
|
|
return get('/api/checkIn/records', params)
|
|
}
|
|
|
|
export function getSignInRecordById(id: number) {
|
|
return get(`/api/checkIn/records/${id}`)
|
|
}
|
|
|
|
export function getSignInStatistics(params: any) {
|
|
return get('/api/checkIn/statistics', params)
|
|
}
|
|
|
|
export function getDailySignInStats(params: any) {
|
|
return get('/api/checkIn/daily-stats', params)
|
|
}
|
|
|
|
export function getAllSignInRecords(params: any) {
|
|
return get('/api/checkIn/admin/records', params)
|
|
}
|
|
|
|
export function getAllSignInStatistics(params: any) {
|
|
return get('/api/checkIn/admin/statistics', params)
|
|
}
|
|
|
|
export function checkIn(data: any) {
|
|
return post('/api/checkIn', data)
|
|
}
|