feat: 昵称+头衔+UID 全站显示(系统身份/自定义头衔双层,主要位恒显#id 评论位开关)+ 用户管理大弹窗编辑 + 用户主页视觉修复(Banner/tab/博客/QQ)+ 评论通知回退 admin + 全量评论列表 + 头像 bug 修复 + 站长帖判断改 author_username
This commit is contained in:
@@ -53,3 +53,7 @@ export function resetUserPassword(id, newPassword) {
|
||||
export function setUserRole(id, role) {
|
||||
return request('/auth/users/' + id + '/role', { method: 'PUT', body: { role } });
|
||||
}
|
||||
/** 编辑用户资料(管理员):nickname/title/title_color/website/email/role */
|
||||
export function updateUser(id, data) {
|
||||
return request('/auth/users/' + id, { method: 'PUT', body: data });
|
||||
}
|
||||
|
||||
@@ -74,3 +74,8 @@ export function approveComment(id) {
|
||||
export function rejectComment(id) {
|
||||
return request('/blog/comments/' + id + '/reject', { method: 'POST' });
|
||||
}
|
||||
|
||||
/** 全量评论列表(仅管理员):status=all|pending|approved|rejected,分页 → { list, total, page, pageSize, totalPages } */
|
||||
export function listAllComments({ status = 'all', page = 1, pageSize = 20 } = {}) {
|
||||
return request(`/blog/comments?status=${encodeURIComponent(status)}&page=${page}&pageSize=${pageSize}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user