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.
25 lines
1.1 KiB
25 lines
1.1 KiB
/** |
|
* 提供api模板规范代码参考,请尽量保证编写代码风格跟模板规范代码一致 |
|
* Copyright © 2020-2022 <a href="http://www.entfrm.com/">entfrm</a> All rights reserved. |
|
* author entfrm开发团队-王翔 |
|
*/ |
|
import type { PushManage, PushManageParams } from '/@/api/platform/common/entity/pushManage'; |
|
import { defHttp } from '/@/utils/http/axios'; |
|
|
|
enum Api { |
|
list = '/common_proxy/common/pushManage/list', |
|
add = '/common_proxy/common/pushManage/save', |
|
get = '/common_proxy/common/pushManage', |
|
edit = '/common_proxy/common/pushManage/update', |
|
del = '/common_proxy/common/pushManage/remove', |
|
} |
|
|
|
export const listPushManage = (params?: Partial<PushManageParams>) => defHttp.get({ url: Api.list, params }); |
|
|
|
export const addPushManage = (params: Partial<PushManage>) => defHttp.post({ url: Api.add, data: params }); |
|
|
|
export const editPushManage = (params: Partial<PushManage>) => defHttp.put({ url: Api.edit, data: params }); |
|
|
|
export const getPushManage = (id: string) => defHttp.get<PushManage>({ url: `${Api.get}/${id}` }); |
|
|
|
export const delPushManage = (id: string) => defHttp.delete({ url: `${Api.del}/${id}` });
|
|
|