You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1015 B
JavaScript
55 lines
1015 B
JavaScript
/**
|
|
* 账号管理
|
|
* @author jinchaofan
|
|
* @date 2020/2/18
|
|
*/
|
|
import http from '../CommonHttp'
|
|
|
|
/**
|
|
* 查询账号
|
|
* @param params
|
|
* @param call
|
|
* @returns {Promise<any | never>}
|
|
*/
|
|
export function listAccountInfoApi(params, call) {
|
|
return http.post('account/info/list', params).then(call);
|
|
}
|
|
/**
|
|
* 删除账号
|
|
* @param params
|
|
* @param call
|
|
* @returns {Promise<any | never>}
|
|
*/
|
|
export function removeAccountApi(params, call) {
|
|
return http.post('account/remove', params).then(call);
|
|
}
|
|
|
|
/**
|
|
* 查询所有店铺
|
|
* @param params
|
|
* @param call
|
|
* @returns {Promise<any | never>}
|
|
*/
|
|
export function listAllShopApi(params, call) {
|
|
return http.get('/poi/store/all/list', params).then(call);
|
|
}
|
|
|
|
/**
|
|
* 查询所有角色
|
|
* @param params
|
|
* @param call
|
|
* @returns {Promise<any | never>}
|
|
*/
|
|
export function listRoleInfoApi(params, call) {
|
|
return http.get('/role/info/list', params).then(call);
|
|
}
|
|
|
|
export default {
|
|
|
|
listAccountInfoApi,
|
|
removeAccountApi,
|
|
listAllShopApi,
|
|
listRoleInfoApi
|
|
|
|
}
|