Files
app-govern/common/api/mine.js

67 lines
1.2 KiB
JavaScript
Raw Normal View History

2023-07-03 20:29:24 +08:00
import request from '../js/request'
import config from '../js/config'
2023-04-07 08:50:21 +08:00
export function queryPersonSet() {
return request({
url: '/appinfo/queryPersonSet',
method: 'post',
data: {},
2023-07-03 20:29:24 +08:00
})
2023-04-07 08:50:21 +08:00
}
export function queryAppInfo(id) {
return request({
url: '/appinfo/queryAppInfo',
method: 'post',
data: {
id,
},
2023-07-03 20:29:24 +08:00
})
2023-04-07 08:50:21 +08:00
}
2023-07-03 20:29:24 +08:00
2023-07-06 14:24:03 +08:00
/**
* 查询app个人中心信息详情
* @param id
*/
export const queryAppInfoByType = (type) => {
return request({
url: '/cs-system-boot/appinfo/queryAppInfoByType',
method: 'post',
data: {
type,
},
})
}
2023-08-11 11:03:31 +08:00
2023-08-23 16:22:08 +08:00
/**
* 查看用户消息推送配置
*/
export const queryUserPushConfig = () => {
return request({
2023-08-29 16:14:09 +08:00
url: '/user-boot/appInfoSet/queryByUserId',
2023-08-23 16:22:08 +08:00
method: 'post',
header: {
'Content-Type': 'application/json',
},
data: {},
})
}
2023-08-11 11:03:31 +08:00
2023-08-23 16:22:08 +08:00
/**
* 更新消息推送配置
*/
export const updatePushConfig = (params) => {
return request({
2023-08-29 16:14:09 +08:00
url: '/user-boot/appInfoSet/update',
2023-08-23 16:22:08 +08:00
method: 'post',
header: {
'Content-Type': 'application/json',
},
data: params,
})
}