20 lines
464 B
TypeScript
20 lines
464 B
TypeScript
import type IStore from '@/domain/iStore.ts';
|
|
|
|
/** 小程序用户 */
|
|
export default interface IMiniUser {
|
|
id?: number;
|
|
nickname?: string;
|
|
phone?: string;
|
|
avatar?: string;
|
|
store_id?: number;
|
|
store?: IStore;
|
|
status?: number;
|
|
last_login_at?: string;
|
|
created_at?: string;
|
|
}
|
|
|
|
export const MINI_USER_STATUS_MAP: Record<number, { text: string; color: string }> = {
|
|
0: { text: '停用', color: 'error' },
|
|
1: { text: '正常', color: 'success' },
|
|
};
|