import type IStore from '@/domain/iStore.ts'; import type ISupplier from '@/domain/iSupplier.ts'; /** 小程序用户 */ export default interface IMiniUser { id?: number; nickname?: string; phone?: string; avatar?: string; /** 0待绑定 1门店 2供应商 */ type?: number; store_id?: number; supplier_id?: number; store?: IStore; supplier?: ISupplier; status?: number; last_login_at?: string; created_at?: string; } export const MINI_USER_TYPE_MAP: Record = { 0: { text: '待绑定', color: 'default' }, 1: { text: '门店', color: 'blue' }, 2: { text: '供应商', color: 'purple' }, }; export const MINI_USER_STATUS_MAP: Record = { 0: { text: '停用', color: 'error' }, 1: { text: '正常', color: 'success' }, };