20 lines
388 B
TypeScript
20 lines
388 B
TypeScript
"use client";
|
|
|
|
/**
|
|
* IUserRepository 接口
|
|
*/
|
|
|
|
import type { Result } from "@/utils/result";
|
|
import type {
|
|
User,
|
|
UserEntitlements,
|
|
} from "@/data/dto/user";
|
|
|
|
export interface IUserRepository {
|
|
/** 获取当前登录用户信息。 */
|
|
getCurrentUser(): Promise<Result<User>>;
|
|
|
|
/** 获取当前用户权益快照。 */
|
|
getEntitlements(): Promise<Result<UserEntitlements>>;
|
|
}
|