init for deploy files

This commit is contained in:
2024-10-10 00:43:50 +08:00
parent b2acf93806
commit ef21829ffe
23 changed files with 1519 additions and 6 deletions

19
src/route/user/login.ts Normal file
View File

@@ -0,0 +1,19 @@
import { query } from '@/module/query.ts';
export const queryLogin = async (username: string, password: string) => {
return await query.post({
path: 'user',
key: 'login',
payload: {
username,
password,
},
});
};
export const queryMe = async () => {
return await query.post({
path: 'user',
key: 'me',
});
};