index.js 906 Bytes
import api from '../index'
import baseUrl from '../baseUrl'
export default {
	getUserList(params){
		return api.get(`${baseUrl}/api/v1/devconf_fx/users`, params)
	},
	getRoleList(params,id) {
		return api.get(`${baseUrl}/api/v1/devconf_fx/roles`, params)
	},
	addUser(params){
		return api.post(`${baseUrl}/api/v1/devconf_fx/users`, params)
	},
	editUser(params,id) {
		return api.post(`${baseUrl}/api/v1/devconf_fx/users/${id}`, params)
	},
	resetPwd(params,id) {
		return api.post(`${baseUrl}/api/v1/devconf_fx/users/${id}/reset`, params)
	},
	delUser(params,id){
		return api.delete(`${baseUrl}/api/v1/devconf_fx/users/${id}`, params)
	},
	getMenuList(params){
		return api.get(`${baseUrl}/api/v1/devconf_fx/menu/list`, params)
	},
	addRole(params){
		return api.post(`${baseUrl}/api/v1/devconf_fx/roles`, params)
	},
	logList(params){
		return api.get(`${baseUrl}/api/v1/devconf_fx/logs`, params)
	},
}