Files
2026-01-29 10:43:43 +08:00

160 lines
3.1 KiB
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import type { PageParam } from '@/api';
import type { Role } from '../../role/model';
import type { Menu } from '../../menu/model';
/**
* 用户
*/
export interface User {
// 账号类型
type?: number;
// 用户id
userId?: number;
// 账号
username?: string;
// 密码
password?: string;
password2?: string;
oldPassword?: string;
// 昵称
nickname?: string;
openId?: string;
sessionKey?: string;
// 别名
alias?: string;
// 头像
avatar?: string;
// 性别(字典)
sex?: string;
// 手机号
phone?: string;
// 脱敏手机号
mobile?: string;
// 邮箱
email?: string;
// 出生日期
birthday?: string;
age?: number;
// 详细地址
address?: string;
longitude?: string;
latitude?: string;
// 会员等级ID
gradeId?: number;
// 个人简介
introduction?: string;
// 机构id
organizationId?: number;
// 状态, 0正常, 1冻结
status?: number;
// 性别名称
sexName?: string;
province?: string;
city?: string;
region?: string;
// 机构名称
organizationName?: string;
// 角色列表
roles?: Role[];
roleCode?: string;
roleId?: number;
roleName?: string;
// 权限列表
authorities?: Menu[];
payTime?: string;
deliveryTime?: string;
receiptTime?: string;
merchantId?: number;
merchantName?: string;
merchantAvatar?: string;
// 可管理的商户
merchants?: string;
// 创建时间
createTime?: string;
// 租户ID
tenantId?: number;
// 租户名称
tenantName?: string;
logo?: string;
companyId?: number;
companyInfo?: any;
planId?: number;
code?: string;
smsCode?: string;
//
remember?: boolean;
balance?: number;
points?: number;
payMoney?: number;
setting?: string;
realName?: string;
companyName?: string;
gradeName?: string;
idCard?: string;
comments?: string;
recommend?: number;
system?: any;
// 头像地址
avatarUrl?: string;
// 1男2女
gender?: string;
// 国家
country?: string;
// 邮箱是否验证, 0否, 1是
emailVerified?: number;
// 注册时间
addTime?: number;
//
idcard?: string;
//
truename?: string;
// 是否超级管理员
isSuperAdmin?: boolean;
// 是否管理员1是2否
isAdmin?: boolean;
// 是否同意注册协议
isAgree?: boolean;
// 客户端ID
clientId?: string;
// 注册来源客户端 (APP、H5、小程序等)
platform?: string;
// 排序
sortNumber?: number;
deleted?: number;
// 实名认证状态
certification?: boolean;
// 实名认证类型
certificationType?: number;
}
/**
* 用户搜索条件
*/
export interface UserParam extends PageParam {
keywords?: any;
type?: any;
userId?: number;
username?: string;
password?: string;
nickname?: string;
realName?: string;
gradeId?: unknown;
gradeName?: string;
companyName?: string;
city?: string;
cityMate?: string;
sex?: string;
phone?: string;
email?: string;
code?: string;
status?: number;
organizationId?: number;
parentId?: number;
sexName?: string;
roleId?: string;
isAdmin?: number;
isSuperAdmin?: boolean;
showProfile?: boolean;
isStaff?: boolean;
}