初次提交
This commit is contained in:
42
server/api/User.js
Normal file
42
server/api/User.js
Normal file
@@ -0,0 +1,42 @@
|
||||
class UserManager {
|
||||
static findUserById(id) {
|
||||
|
||||
}
|
||||
static findUserByName(name) {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 创建新用户
|
||||
* @param { Object } arg
|
||||
* @param { String } [arg.name] 用户名
|
||||
* @param { String } [arg.name] 用户名
|
||||
* @returns { User }
|
||||
*/
|
||||
static createUser() {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
class User {
|
||||
/** @type { Number } */
|
||||
id
|
||||
/** @type { String } */
|
||||
name
|
||||
/** @type { String } */
|
||||
nick
|
||||
/** @type { String } */
|
||||
description
|
||||
}
|
||||
|
||||
class UserApi {
|
||||
static createUser() {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
export {
|
||||
User,
|
||||
UserManager,
|
||||
UserApi
|
||||
}
|
||||
Reference in New Issue
Block a user