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.
65 lines
1.3 KiB
65 lines
1.3 KiB
var fly = require('../utils/request.js')
|
|
module.exports = {
|
|
getToken: getToken,
|
|
login: login,
|
|
getIssueList: getIssueList,
|
|
getEventList: getEventList,
|
|
getItemNotice: getItemNotice,
|
|
indexPanel: indexPanel,
|
|
getIndexStatistics: getIndexStatistics,
|
|
logout,
|
|
checkUpdateAvatar,
|
|
updateAvatar,
|
|
getCustomId
|
|
}
|
|
|
|
function getToken(wxCode) {
|
|
return fly.get('work/user/getToken', {
|
|
wxCode: wxCode
|
|
})
|
|
}
|
|
|
|
function indexPanel() {
|
|
return fly.get('work/user/indexPanel')
|
|
}
|
|
function getIndexStatistics(params) {
|
|
return fly.get('work/user/indexStatistics', params)
|
|
}
|
|
|
|
function login(params) {
|
|
return fly.post('work/user/login', params)
|
|
}
|
|
|
|
function getIssueList(params) {
|
|
return fly.get('work/event/issue/list', params)
|
|
}
|
|
|
|
function getEventList(params) {
|
|
return fly.get('work/event/event/list', params)
|
|
}
|
|
|
|
function getItemNotice(params) {
|
|
return fly.get('work/event/item/notice', params)
|
|
}
|
|
//退出登录
|
|
function logout() {
|
|
return fly.post('work/user/logout')
|
|
}
|
|
|
|
//判断是否更新头像
|
|
function checkUpdateAvatar() {
|
|
return fly.get('work/user/checkUpdateAvatar')
|
|
}
|
|
|
|
//更新头像
|
|
function updateAvatar(avatar) {
|
|
return fly.get('work/user/updateAvatar',{
|
|
avatar: avatar
|
|
})
|
|
}
|
|
/**
|
|
* 工作日志-获取CustomId 2021.02.25
|
|
*/
|
|
function getCustomId () {
|
|
return fly.get("plugins/workLog/getCustomId")
|
|
}
|