mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-25 01:09:19 +08:00
feat: 新增权限码管理和多处优化
This commit is contained in:
@@ -24,8 +24,8 @@ export async function admin_getAccountPageApi(params: PageQueryDTO<AccountDTO.Ac
|
||||
/**
|
||||
* 更新账户信息
|
||||
*/
|
||||
export async function admin_updateAccountApi(data: AccountDTO.UpdateAccountDTO) {
|
||||
return requestClient.put<AccountVO.AccountInfoVO>(`/company/account/update/${data.id}`, data);
|
||||
export async function admin_updateAccountApi(accountId: number, data: AccountDTO.UpdateAccountDTO) {
|
||||
return requestClient.put<AccountVO.AccountInfoVO>(`/company/account/update/${accountId}`, data);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -5,71 +5,61 @@
|
||||
export namespace AccountDTO {
|
||||
/** 创建账户参数 */
|
||||
export interface CreateAccountDTO {
|
||||
/** 用户名 */
|
||||
username: string;
|
||||
/** 登录账号 */
|
||||
loginCode: string;
|
||||
/** 密码 */
|
||||
password: string;
|
||||
/** 真实姓名 */
|
||||
realName: string;
|
||||
/** 邮箱 */
|
||||
email?: string;
|
||||
/** 手机号 */
|
||||
phone?: string;
|
||||
/** 公司ID */
|
||||
companyId?: number;
|
||||
/** 头像图片ID */
|
||||
avatarImageId?: number;
|
||||
/** 部门ID */
|
||||
departmentId?: number;
|
||||
/** 职位ID */
|
||||
positionId?: number;
|
||||
/** 角色ID */
|
||||
roleId?: number;
|
||||
/** 状态 (0-禁用 1-正常) */
|
||||
status?: number;
|
||||
departmentId: number;
|
||||
/** 岗位ID */
|
||||
positionId: number;
|
||||
/** 备注信息 */
|
||||
remark?: string;
|
||||
}
|
||||
|
||||
/** 更新账户参数 */
|
||||
export interface UpdateAccountDTO {
|
||||
/** 账户ID */
|
||||
id: number;
|
||||
/** 真实姓名 */
|
||||
realName?: string;
|
||||
/** 邮箱 */
|
||||
email?: string;
|
||||
/** 登录账号 */
|
||||
loginCode?: string;
|
||||
/** 手机号 */
|
||||
phone?: string;
|
||||
/** 公司ID */
|
||||
companyId?: number;
|
||||
/** 真实姓名 */
|
||||
realName?: string;
|
||||
/** 头像图片ID */
|
||||
avatarImageId?: number;
|
||||
/** 部门ID */
|
||||
departmentId?: number;
|
||||
/** 职位ID */
|
||||
/** 岗位ID */
|
||||
positionId?: number;
|
||||
/** 角色ID */
|
||||
roleId?: number;
|
||||
/** 状态 (0-禁用 1-正常) */
|
||||
/** 状态(0-正常 1-删除 2-停用 3-冻结) */
|
||||
status?: number;
|
||||
/** 备注信息 */
|
||||
remark?: string;
|
||||
}
|
||||
|
||||
/** 账户过滤条件 */
|
||||
export interface AccountFilterDTO {
|
||||
/** 登录账号(模糊查询) */
|
||||
loginCode?: undefined | string;
|
||||
loginCode?: string;
|
||||
/** 用户姓名(模糊查询) */
|
||||
realName?: undefined | string;
|
||||
realName?: string;
|
||||
/** 手机号码(精确查询) */
|
||||
phone?: undefined | string;
|
||||
phone?: string;
|
||||
/** 公司ID */
|
||||
companyId?: undefined | number;
|
||||
companyId?: number;
|
||||
/** 部门ID */
|
||||
departmentId?: undefined | number;
|
||||
departmentId?: number;
|
||||
/** 岗位ID */
|
||||
positionId?: undefined | number;
|
||||
positionId?: number;
|
||||
/** 角色 */
|
||||
role?: undefined | string;
|
||||
role?: string;
|
||||
/** 状态(0-正常 1-删除 2-停用 3-冻结) */
|
||||
status?: undefined | number;
|
||||
/** 页码 */
|
||||
pageNum?: undefined | number;
|
||||
/** 每页大小 */
|
||||
pageSize?: undefined | number;
|
||||
status?: number;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,16 +5,8 @@
|
||||
export namespace AccountVO {
|
||||
/** 账户信息 */
|
||||
export interface AccountInfoVO {
|
||||
/** 账户ID */
|
||||
/** 用户ID */
|
||||
id: number;
|
||||
/** 用户名 */
|
||||
username: string;
|
||||
/** 真实姓名 */
|
||||
realName: string;
|
||||
/** 邮箱 */
|
||||
email?: string;
|
||||
/** 手机号 */
|
||||
phone?: string;
|
||||
/** 公司ID */
|
||||
companyId?: number;
|
||||
/** 公司名称 */
|
||||
@@ -23,20 +15,49 @@ export namespace AccountVO {
|
||||
departmentId?: number;
|
||||
/** 部门名称 */
|
||||
departmentName?: string;
|
||||
/** 职位ID */
|
||||
/** 岗位ID */
|
||||
positionId?: number;
|
||||
/** 职位名称 */
|
||||
/** 岗位名称 */
|
||||
positionName?: string;
|
||||
/** 角色ID */
|
||||
roleId?: number;
|
||||
/** 登录账号 */
|
||||
loginCode: string;
|
||||
/** 手机号码 */
|
||||
phone?: string;
|
||||
/** 用户姓名 */
|
||||
realName: string;
|
||||
/** 头像路径 */
|
||||
avatar?: string;
|
||||
/** 头像图片ID */
|
||||
avatarImageId?: number;
|
||||
/** 角色 */
|
||||
role?: string;
|
||||
/** 角色名称 */
|
||||
roleName?: string;
|
||||
/** 状态 (0-禁用 1-正常) */
|
||||
/** 密码安全级别 */
|
||||
pwdSecurityLevel?: number;
|
||||
/** 密码最后更新时间 */
|
||||
pwdUpdateTime?: string;
|
||||
/** 最后登录IP */
|
||||
lastLoginIp?: string;
|
||||
/** 最后登录时间 */
|
||||
lastLoginDate?: string;
|
||||
/** 冻结时间 */
|
||||
freezeDate?: string;
|
||||
/** 冻结原因 */
|
||||
freezeCause?: string;
|
||||
/** 状态 */
|
||||
status: number;
|
||||
/** 状态名称 */
|
||||
statusName?: string;
|
||||
/** 备注信息 */
|
||||
remark?: string;
|
||||
/** 创建时间 */
|
||||
createTime: string;
|
||||
/** 更新时间 */
|
||||
updateTime: string;
|
||||
/** 创建者 */
|
||||
createByName?: string;
|
||||
/** 更新者 */
|
||||
updateByName?: string;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -69,9 +69,5 @@ export namespace SuperAccountDTO {
|
||||
role?: string;
|
||||
/** 状态(0-正常 1-删除 2-停用 3-冻结) */
|
||||
status?: number;
|
||||
/** 页码 */
|
||||
pageNum?: number;
|
||||
/** 每页大小 */
|
||||
pageSize?: number;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,14 +5,8 @@
|
||||
export namespace SuperAccountVO {
|
||||
/** 账户信息 */
|
||||
export interface AccountInfoVO {
|
||||
/** 账户ID */
|
||||
/** 用户ID */
|
||||
id: number;
|
||||
/** 登录账号 */
|
||||
loginCode: string;
|
||||
/** 用户姓名 */
|
||||
realName: string;
|
||||
/** 手机号码 */
|
||||
phone?: string;
|
||||
/** 公司ID */
|
||||
companyId?: number;
|
||||
/** 公司名称 */
|
||||
@@ -25,17 +19,45 @@ export namespace SuperAccountVO {
|
||||
positionId?: number;
|
||||
/** 岗位名称 */
|
||||
positionName?: string;
|
||||
/** 登录账号 */
|
||||
loginCode: string;
|
||||
/** 手机号码 */
|
||||
phone?: string;
|
||||
/** 用户姓名 */
|
||||
realName: string;
|
||||
/** 头像路径 */
|
||||
avatar?: string;
|
||||
/** 头像图片ID */
|
||||
avatarImageId?: number;
|
||||
/** 角色 */
|
||||
role?: string;
|
||||
/** 头像 */
|
||||
avatar?: string;
|
||||
/** 状态(0-正常 1-删除 2-停用 3-冻结) */
|
||||
/** 角色名称 */
|
||||
roleName?: string;
|
||||
/** 密码安全级别 */
|
||||
pwdSecurityLevel?: number;
|
||||
/** 密码最后更新时间 */
|
||||
pwdUpdateTime?: string;
|
||||
/** 最后登录IP */
|
||||
lastLoginIp?: string;
|
||||
/** 最后登录时间 */
|
||||
lastLoginDate?: string;
|
||||
/** 冻结时间 */
|
||||
freezeDate?: string;
|
||||
/** 冻结原因 */
|
||||
freezeCause?: string;
|
||||
/** 状态 */
|
||||
status: number;
|
||||
/** 备注 */
|
||||
/** 状态名称 */
|
||||
statusName?: string;
|
||||
/** 备注信息 */
|
||||
remark?: string;
|
||||
/** 创建时间 */
|
||||
createTime: string;
|
||||
/** 更新时间 */
|
||||
updateTime: string;
|
||||
/** 创建者 */
|
||||
createByName?: string;
|
||||
/** 更新者 */
|
||||
updateByName?: string;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user