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
477 B

3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
  1. import http from 'libs/http'
  2. export const getOreList = (params: System.Page = { pageNum: 1, pageSize: 999 }): Promise<System.PageResponse<Ore.OreItem>> => http.get(`/ores/list`, { params })
  3. export const saveOre = (params: { name: string }): Promise<null> => http.post(`/ores`, params)
  4. export const editOre = (params: { id: number, name: string }): Promise<null> => http.put(`/ores`, params)
  5. export const delOre = (ids: string): Promise<null> => http.delete(`/ores/${ids}`)