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
9 lines
477 B
import http from 'libs/http'
|
|
|
|
export const getOreList = (params: System.Page = { pageNum: 1, pageSize: 999 }): Promise<System.PageResponse<Ore.OreItem>> => http.get(`/ores/list`, { params })
|
|
|
|
export const saveOre = (params: { name: string }): Promise<null> => http.post(`/ores`, params)
|
|
|
|
export const editOre = (params: { id: number, name: string }): Promise<null> => http.put(`/ores`, params)
|
|
|
|
export const delOre = (ids: string): Promise<null> => http.delete(`/ores/${ids}`)
|