protocol-sample-collection.ts 539 B

1234567891011121314151617181920212223
  1. import request from '@/utils/http'
  2. type PageList<T> = {
  3. list: T[]
  4. total: number
  5. page: number
  6. pageSize: number
  7. totalPages: number
  8. }
  9. /** 采集协议样本采集信息列表(每个样本一条) */
  10. export function fetchProtocolSampleCollectionList(params?: {
  11. page?: number
  12. pageSize?: number
  13. keyword?: string
  14. /** uncollected | ycj | jcz | yrk | yzf | all */
  15. sampleStatus?: string
  16. }) {
  17. return request.get<PageList<Record<string, unknown>>>({
  18. url: '/web/admin/protocol-sample-collections/list',
  19. params
  20. })
  21. }