From 696543fa9099b2f2ffabed2605db96118aa76fdc Mon Sep 17 00:00:00 2001 From: MoonLeeeaf <150461955+MoonLeeeaf@users.noreply.github.com> Date: Sun, 23 Mar 2025 01:04:09 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20style:=20=E6=9B=B4=E6=94=B9=E6=88=90?= =?UTF-8?q?=E5=91=98=E5=91=BD=E5=90=8D=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/api/User.js | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/server/api/User.js b/server/api/User.js index a3b491e..52ee62f 100644 --- a/server/api/User.js +++ b/server/api/User.js @@ -1,4 +1,5 @@ import io from '../lib/io.js'; +import { CallbackMessage } from '../Types.js'; const baseDir = 'whiteslik_data/user' io.mkdirs(baseDir) @@ -97,8 +98,16 @@ export class User { passwordHashed } -export class UserApi { - static createUser() { - - } +export const UserApi = { + API_NAME: 'UserApi', + /** + * @param { Object } arg + * @returns { CallbackMessage } + */ + ["createUser"]: (arg) => { + return { + msg: '🥰🥰🥰🥰🥰', + code: CallbackMessage.Code.OK, + } + }, }