完善个人信息配置
This commit is contained in:
@@ -0,0 +1,80 @@
|
||||
import config from "@/config";
|
||||
import http from "@/utils/request";
|
||||
|
||||
export default {
|
||||
getInfo: {
|
||||
url: `${config.API_URL}/user.bind.info`,
|
||||
name: "获取绑定(微信、钉钉)个人中心",
|
||||
post: async function (params) {
|
||||
return await http.post(this.url, params);
|
||||
},
|
||||
},
|
||||
uploadAvatar:{
|
||||
url: `${config.API_URL}/user.update.avatar`,
|
||||
name: "个人头像上传",
|
||||
post: async function (params) {
|
||||
return await http.post(this.url, params);
|
||||
},
|
||||
},
|
||||
getInformation:{
|
||||
url: `${config.API_URL}/user.information`,
|
||||
name: "获取登录用户个人信息",
|
||||
post: async function (params) {
|
||||
return await http.post(this.url, params);
|
||||
},
|
||||
},
|
||||
timeoutConfig:{
|
||||
url: `${config.API_URL}/system.login.timeout.config`,
|
||||
name: "登录超时退出配置",
|
||||
post: async function (params) {
|
||||
return await http.post(this.url, params);
|
||||
},
|
||||
},
|
||||
timeoutGet:{
|
||||
url: `${config.API_URL}/system.login.timeout.get`,
|
||||
name: "获取登录超时时间",
|
||||
post: async function (params) {
|
||||
return await http.post(this.url, params);
|
||||
},
|
||||
},
|
||||
subscribe:{
|
||||
list:{
|
||||
url: `${config.API_URL}/messages.subscribe.list`,
|
||||
name: "消息订阅列表",
|
||||
post: async function (params) {
|
||||
return await http.post(this.url, params);
|
||||
},
|
||||
},
|
||||
set:{
|
||||
url: `${config.API_URL}/messages.user.subscribe`,
|
||||
name: "消息订阅",
|
||||
post: async function (params) {
|
||||
return await http.post(this.url, params);
|
||||
},
|
||||
}
|
||||
},
|
||||
messages:{
|
||||
list:{
|
||||
url: `${config.API_URL}/messages.todo.list`,
|
||||
name: "消息列表",
|
||||
post: async function (params) {
|
||||
return await http.post(this.url, params);
|
||||
},
|
||||
},
|
||||
read:{
|
||||
url: `${config.API_URL}/messages.todo.read`,
|
||||
name: "消息已读",
|
||||
post: async function (params) {
|
||||
return await http.post(this.url, params);
|
||||
},
|
||||
},
|
||||
delete:{
|
||||
url: `${config.API_URL}/messages.todo.del`,
|
||||
name: "删除待办消息",
|
||||
post: async function (params) {
|
||||
return await http.post(this.url, params);
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user