feat(profile): 允许用户修改用户名(loginCode)

- 后端 UpdateUserInfoDTO 新增 loginCode 字段
- 后端 Service 层新增 loginCode 唯一性检查,已被使用则报错
- 前端表单支持编辑用户名
- 前端 DTO 类型同步更新
This commit is contained in:
小蟑螂
2026-03-29 15:21:05 +08:00
parent a4fdac079c
commit f3a0309dbd
4 changed files with 30 additions and 3 deletions
@@ -5,6 +5,8 @@
export namespace UserDTO {
/** 更新用户信息参数 */
export interface UpdateUserInfoDTO {
/** 登录账号(用户名) */
loginCode?: string;
/** 用户名称 */
realName?: string;
/** 头像图片ID */