message.js
316 Bytes
import { fn, fetch } from './fn'
const Api = {
MESSAGE_LIST: '/srv/?a=message&t=list',
MESSAGE_DETAIL: '/srv/?a=message&t=detail',
}
export const messageListAPI = (params) => fn(fetch.get(Api.MESSAGE_LIST, { params }))
export const messageDetailAPI = (params) => fn(fetch.get(Api.MESSAGE_DETAIL, { params }))