后台管理页面用户管理初版

This commit is contained in:
xiaowang
2026-02-25 11:38:31 +08:00
parent 057db9ee76
commit d1918eb269
6 changed files with 118 additions and 22 deletions
+20 -5
View File
@@ -1,7 +1,22 @@
import api from './index'
import type { UserInfo } from './auth'
export type UserVO = UserInfo
export interface UserVO extends UserInfo {
id: number
shopId?: number
shopName?: string
nickname: string
account: string
avatar: string
signature?: string
level?: string
type: number
vipId?: number
createTime: string
updateTime: string
status: number
phone?: string
}
export interface UpdateUserInfoRequest {
nickname?: string
@@ -16,18 +31,18 @@ export interface ListUsersParams {
}
export interface CreateUserRequest {
username: string
account: string
nickname: string
phone: string
password: string
userType: number
type: number
}
export interface UpdateUserRequest {
username?: string
account?: string
nickname?: string
phone?: string
userType?: number
type?: number
}
export const userApi = {