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
|
||||
|
||||
Vendored
+20
@@ -535,6 +535,8 @@ declare namespace Api {
|
||||
id: string
|
||||
regionName: string
|
||||
hospitalNames: string[]
|
||||
staffNames: string[]
|
||||
leaderNames: string[]
|
||||
tenantNo: string
|
||||
orderNum: number
|
||||
remark: string
|
||||
@@ -557,6 +559,24 @@ declare namespace Api {
|
||||
}
|
||||
}
|
||||
|
||||
namespace BizCollectionRegionStaff {
|
||||
interface StaffItem {
|
||||
id: string
|
||||
regionId: string
|
||||
userId: string
|
||||
userName: string
|
||||
nickName: string
|
||||
userNo: string
|
||||
deptName: string
|
||||
isLeader: boolean
|
||||
tenantNo: string
|
||||
orderNum: number
|
||||
remark: string
|
||||
createTime: string
|
||||
updateTime: string
|
||||
}
|
||||
}
|
||||
|
||||
namespace BizCollectionProtocolNo {
|
||||
interface ProtocolNoItem {
|
||||
id: string
|
||||
|
||||
Reference in new issue
Block a user