mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: add exports
This commit is contained in:
2 files changed
+4
No files matched your search
@@ -209,6 +209,9 @@ class UserModel {
|
|||||||
loginip: '127.0.0.1',
|
loginip: '127.0.0.1',
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static _handleMailLower = handleMailLower;
|
||||||
|
static _deleteUserCache = deleteUserCache;
|
||||||
|
|
||||||
@ArgMethod
|
@ArgMethod
|
||||||
static async getById(domainId: string, _id: number, scope: bigint | string = PERM.PERM_ALL): Promise<User> {
|
static async getById(domainId: string, _id: number, scope: bigint | string = PERM.PERM_ALL): Promise<User> {
|
||||||
if (cache.has(`id/${_id}/${domainId}`)) return cache.get(`id/${_id}/${domainId}`) || null;
|
if (cache.has(`id/${_id}/${domainId}`)) return cache.get(`id/${_id}/${domainId}`) || null;
|
||||||
|
|||||||
@@ -41,6 +41,7 @@ export { Handler, ConnectionHandler, requireSudo } from './service/server';
|
|||||||
export { Service, Context } from './context';
|
export { Service, Context } from './context';
|
||||||
export { buildContent } from './lib/content';
|
export { buildContent } from './lib/content';
|
||||||
export { default as mime } from './lib/mime';
|
export { default as mime } from './lib/mime';
|
||||||
|
export { default as difficultyAlgorithm } from './lib/difficulty';
|
||||||
export { default as rating } from './lib/rating';
|
export { default as rating } from './lib/rating';
|
||||||
export { default as avatar } from './lib/avatar';
|
export { default as avatar } from './lib/avatar';
|
||||||
/** @deprecated use Handler.paginate instead */
|
/** @deprecated use Handler.paginate instead */
|
||||||
|
|||||||
Reference in new issue
Block a user