You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
491 B

2 weeks ago
  1. import http from 'libs/http'
  2. export const getSolsList = (params: System.Page = { pageNum: 1, pageSize: 999 }): Promise<System.PageResponse<Solution.SolutionItem>> => http.get(`/sols/list`, { params })
  3. export const saveSols = (params: { name: string }): Promise<null> => http.post(`/sols`, params)
  4. export const editSols = (params: { id: number, name: string }): Promise<null> => http.put(`/sols`, params)
  5. export const delSols = (ids: string): Promise<null> => http.delete(`/sols/${ids}`)