//用户登录
const userLogin = (params = {}) => uni.$u.post('/base/auth/login', params);

//获取首页信息
const home = (params = {}) => uni.$u.get('/info/home', params);

// 获取用户信息
const getUserInfo = (params = {}) => uni.$u.get('/base/auth/me', params);

//消息
const messagesList = (params = {}) => uni.$u.get('/base/message/me', params);

//查看消息详情
const messagesDetails = (params = {}) => uni.$u.get('/manage/message', params);

//标记已读
const messagesRead = (params = {}) => uni.$u.get('/base/message/read', params);

//指挥交办主页
const commandList = (params = {}) => uni.$u.get('/manage/messages', params);

//指挥交办数量查询
const commandNum = (params = {}) => uni.$u.get('/manage/message-nums', params);

//指挥交办详情页
const commandDetails = (params = {}) => uni.$u.get('/manage/message', params);

//社区民意直通车主页 
const throughTrainList = (params = {}) => uni.$u.get('/info/complaints', params);

//社区民意直通车数量查询
const throughTrainNum = (params = {}) => uni.$u.get('/info/nums', params);

//社区民意直通车详情
const throughTrainDetails = (params = {}) => uni.$u.get('/info/complaint', params);

//部门列表
const getdepartment = (params = {}) => uni.$u.get('/base/department/select-options', params);

//事项分类列表
const getFneleiList = (params = {}) => uni.$u.get('/manage/category/tree', params);

//申请协助
const doHelp = (params = {}) => uni.$u.post('/manage/message/application-multi-department', params);

//立即审核
const doAudit = (params = {}) => uni.$u.post('/manage/message/check-application-multi-department', params);

//完结事件
const doComplete = (params = {}) => uni.$u.post('/manage/message/finish', params);

//权限管理接口
const menus = (params = {}) => uni.$u.get('/base/menu/my-menus', params);

//修改密码
const amendPassword = (params = {}) => uni.$u.post('/base/auth/update-password', params);

//确定指派
const confirmAssign = (params = {}) => uni.$u.put('/info/complaint', params);

export default {
	userLogin,
	getUserInfo,
	home,
	messagesList,
	messagesDetails,
	messagesRead,
	commandList,
	commandNum,
	commandDetails,
	throughTrainList,
	throughTrainNum,
	throughTrainDetails,
	getdepartment,
	doHelp,
	doAudit,
	doComplete,
	menus,
	amendPassword,
	confirmAssign,
	getFneleiList
}