import {UserListData} from '..';
import {ListParams} from '.';

/** 获取用户列表 */
export type GetUserListParams = {
  /** 用户名称 */
  userName: string;
  /** 用户编号 */
  code: string;
} & ListParams;

/** 新增用户 */
export type AddUserParams = Omit<
UserListData,
'departmentId' | 'roleId' | 'createTime' | 'id' | 'code'
>;

/** 修改用户 */
export type EditUserParams = Omit<
UserListData,
'departmentId' | 'roleId' | 'createTime' | 'code' | 'password'
>;
