import request from '@/utils/request' ; import { Github } from '@root/src/models/github' ; export const getVisitorsCount = ( ) => { return request . get < ResponseData < number > > ( '/common/visitors/count' ) ; } ; export const getReposByGithub = ( ) => { return request . get < ResponseData < Github [ ] > > ( '/github/repos' ) ; } ;