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.
shop-admin/src/api/pay/application.js

62 lines
1.3 KiB

/*
* @Author: ch
* @Date: 2022-07-04 15:20:02
* @LastEditors: ch
* @LastEditTime: 2022-07-07 11:06:40
* @Description: file content
*/
import request from '@/utils/request.js';
export const create = (data) => {
return request({
url: '/payCenter/appInfo',
method: 'post',
data,
});
};
export const del = (mchPrimaryId) => {
return request({
url: `/payCenter/appInfo/${mchPrimaryId}`,
method: 'delete',
});
};
export const detail = (mchPrimaryId) => {
return request({
url: `/payCenter/appInfo/${mchPrimaryId}`,
method: 'get',
});
};
export const update = (data) => {
return request({
url: '/payCenter/appInfo',
method: 'put',
data,
});
};
export const updateStatus = (params) => {
return request({
url: '/payCenter/appInfo/updateStatus',
method: 'put',
params,
});
};
export const getApplicationList = (params) => {
return request({
url: '/payCenter/appInfo/page',
method: 'get',
params,
});
};
export const getApplicationSelector = (params) => {
return request({
url: '/payCenter/appInfo/appSelector',
method: 'get',
params,
});
};
export const getPayType = () => {
return request({
url: '/payCenter/appInfo/payCode',
method: 'get',
});
};