feat(web-admin): add collection region staff API types and clients
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
97c241c1b3
commit
d5e5ae52a0
2 files changed
+49
No files matched your search
@@ -1034,6 +1034,35 @@ export function fetchDeleteHospital(regionId: string, hospitalId: string) {
|
||||
return request.del({ url: `/web/admin/collection-regions/${regionId}/hospitals/${hospitalId}` })
|
||||
}
|
||||
|
||||
export function fetchRegionStaffList(
|
||||
regionId: string,
|
||||
params?: { page?: number; pageSize?: number }
|
||||
) {
|
||||
return request.get<PageResult<Api.BizCollectionRegionStaff.StaffItem>>({
|
||||
url: `/web/admin/collection-regions/${regionId}/staff`,
|
||||
params
|
||||
})
|
||||
}
|
||||
export function fetchCreateRegionStaff(
|
||||
regionId: string,
|
||||
data: { userId: string; isLeader?: boolean; orderNum?: number; remark?: string }
|
||||
) {
|
||||
return request.post({ url: `/web/admin/collection-regions/${regionId}/staff`, params: data })
|
||||
}
|
||||
export function fetchUpdateRegionStaff(
|
||||
regionId: string,
|
||||
staffId: string,
|
||||
data: Partial<{ isLeader: boolean; orderNum: number; remark: string }>
|
||||
) {
|
||||
return request.put({
|
||||
url: `/web/admin/collection-regions/${regionId}/staff/${staffId}`,
|
||||
params: data
|
||||
})
|
||||
}
|
||||
export function fetchDeleteRegionStaff(regionId: string, staffId: string) {
|
||||
return request.del({ url: `/web/admin/collection-regions/${regionId}/staff/${staffId}` })
|
||||
}
|
||||
|
||||
export function fetchCollectionProtocolNoList(params?: {
|
||||
page?: number
|
||||
pageSize?: number
|
||||
|
||||
Reference in new issue
Block a user