新增管理师移动端前端模块

This commit is contained in:
2026-06-29 20:58:39 +08:00
parent 9cfaac3e18
commit 48c47fe3ff
78 changed files with 9276 additions and 5 deletions
+22
View File
@@ -0,0 +1,22 @@
import { adminApi } from '@/api/client'
import type { IdType, UserInfo } from '@/types/common'
import type { CustomerCreateRequest, CustomerPage } from '@/types/manager'
export interface CustomerListParams {
page: number
size: number
keyword?: string
hasOrder?: boolean
}
export const managerCustomersApi = {
list(params: CustomerListParams): Promise<CustomerPage> {
return adminApi.get('/manager/customers', { params })
},
detail(id: IdType): Promise<UserInfo> {
return adminApi.get(`/manager/customers/${id}`)
},
create(data: CustomerCreateRequest): Promise<IdType> {
return adminApi.post('/manager/customers', data)
}
}