小程序登录优化
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import type IStore from '@/domain/iStore.ts';
|
||||
import type ISupplier from '@/domain/iSupplier.ts';
|
||||
|
||||
/** 小程序用户 */
|
||||
export default interface IMiniUser {
|
||||
@@ -7,23 +6,13 @@ export default interface IMiniUser {
|
||||
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<number, { text: string; color: string }> = {
|
||||
0: { text: '待绑定', color: 'default' },
|
||||
1: { text: '门店', color: 'blue' },
|
||||
2: { text: '供应商', color: 'purple' },
|
||||
};
|
||||
|
||||
export const MINI_USER_STATUS_MAP: Record<number, { text: string; color: string }> = {
|
||||
0: { text: '停用', color: 'error' },
|
||||
1: { text: '正常', color: 'success' },
|
||||
|
||||
Reference in New Issue
Block a user