sc
This commit is contained in:
42
src/api/account/index.js
Normal file
42
src/api/account/index.js
Normal file
@@ -0,0 +1,42 @@
|
||||
import request from '@/utils/request';
|
||||
|
||||
// 添加增删改查接口
|
||||
export const addAccount = async data => {
|
||||
return request({
|
||||
url: '/applet/xunjia/account/create',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
};
|
||||
|
||||
export const deleteAccount = async id => {
|
||||
return request({
|
||||
url: '/applet/xunjia/account/delete',
|
||||
method: 'delete',
|
||||
params: { id }
|
||||
});
|
||||
};
|
||||
|
||||
export const updateAccount = async data => {
|
||||
return request({
|
||||
url: '/applet/xunjia/account/update',
|
||||
method: 'put',
|
||||
data
|
||||
});
|
||||
};
|
||||
|
||||
export const getAccountPage = async params => {
|
||||
return request({
|
||||
url: '/applet/xunjia/account/page',
|
||||
method: 'get',
|
||||
params
|
||||
});
|
||||
};
|
||||
|
||||
export const getAccountInfo = async id => {
|
||||
return request({
|
||||
url: '/applet/xunjia/account/get',
|
||||
method: 'get',
|
||||
params: { id }
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user