feat:初始化工程

This commit is contained in:
2025-09-21 22:48:33 +08:00
commit b0935a05fd
95 changed files with 12906 additions and 0 deletions

16
src/apis/session.ts Normal file
View File

@@ -0,0 +1,16 @@
import { cloudService } from './index'
import { ISession } from '@/types/auth'
export const loginHomeApi = (name: string, password: string): Promise<ISession> =>
cloudService({
url: '/home-service/session',
method: 'post',
params: { name, password }
})
export const loginAdminApi = (name: string, password: string): Promise<ISession> =>
cloudService({
url: '/admin-service/session',
method: 'post',
params: { name, password }
})