Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c53fa56
commit 83327ea
Showing
7 changed files
with
188 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,25 @@ | ||
import { useAxios } from '@/hooks/web/useAxios' | ||
import type { | ||
AnalysisTotalTypes, | ||
UserAccessSource, | ||
WeeklyUserActivity, | ||
MonthlySales | ||
} from './types' | ||
|
||
const { request } = useAxios() | ||
|
||
export const getCountApi = () => { | ||
return request({ url: '/analysis/total', method: 'get' }) | ||
return request<AnalysisTotalTypes>({ url: '/analysis/total', method: 'get' }) | ||
} | ||
|
||
export const getUserAccessSourceApi = () => { | ||
return request<UserAccessSource[]>({ url: '/analysis/userAccessSource', method: 'get' }) | ||
} | ||
|
||
export const getWeeklyUserActivityApi = () => { | ||
return request<WeeklyUserActivity[]>({ url: '/analysis/weeklyUserActivity', method: 'get' }) | ||
} | ||
|
||
export const getMonthlySalesApi = () => { | ||
return request<MonthlySales[]>({ url: '/analysis/monthlySales', method: 'get' }) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters