feat: 接口名统一增加API后缀

This commit is contained in:
菲鸽
2024-02-01 15:38:11 +08:00
parent 1b7ae81550
commit 6fce781794
2 changed files with 11 additions and 11 deletions

View File

@@ -4,7 +4,7 @@ import type { IFooItem } from './foo.d'
export { IFooItem }
/** get 请求 */
export const getFoo = (name: string) => {
export const getFooAPI = (name: string) => {
return http<IFooItem>({
url: `/foo`,
method: 'GET',
@@ -13,7 +13,7 @@ export const getFoo = (name: string) => {
}
/** get 请求 */
export const postFoo = (name: string) => {
export const postFooAPI = (name: string) => {
return http<IFooItem>({
url: `/foo`,
method: 'POST',