123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139 |
- import request from '@/utils/request'
- // 查询聊天消息管理;列表
- export function listMsg(query) {
- return request({
- url: '/chat/msg/list',
- method: 'get',
- params: query
- })
- }
- // 查询聊天消息管理;详细
- export function getMsg(msgId) {
- return request({
- url: '/chat/msg/' + msgId,
- method: 'get'
- })
- }
- // 新增聊天消息管理;
- export function addMsg(data) {
- return request({
- url: '/chat/msg',
- method: 'post',
- data: data
- })
- }
- // 修改聊天消息管理;
- export function updateMsg(data) {
- return request({
- url: '/chat/msg',
- method: 'put',
- data: data
- })
- }
- // 获得聊天消息管理;
- export function msgFriend(msgId) {
- return request({
- url: '/chat/msg/friend',
- method: 'get'
- })
- }
- // 删除聊天消息管理;
- export function delMsg(msgId) {
- return request({
- url: '/chat/msg/'+msgId,
- method: 'delete'
- })
- }
- //树获取用户信息
- export function userTree() {
- return request({
- url: '/system/user/tree',
- method: 'get'
- })
- }
- //选择树时得到用户个人的详细信息,包含头像等
- export function userInfo(data) {
- return request({
- url: '/system/user/info/'+data,
- method: 'get'
- })
- }
- //发送消息
- export function msgSend(data) {
- return request({
- url: "/chat/msg/send",
- method: "post",
- data
- })
- }
- //获取聊天记录
- export function msgRecord(data,query) {
- return request({
- url: '/chat/msg/record/'+data,
- method: 'get',
- params: query
- })
- }
- // 获取文件树,用于选择目录发送
- export function dirTree(data) {
- return request({
- url: '/biz/dir/dir-tree/'+data,
- method: 'get'
- })
- }
- // 获取文件树,用于选择文件发送
- export function fileTree(data) {
- return request({
- url: '/biz/dir/file-tree/'+data,
- method: 'get'
- })
- }
- //获取文件的详细信息,以便于在聊天中展示
- export function getConfigKeys(docId) {
- return request({
- url: '/biz/info/' + docId,
- method: 'get'
- })
- }
- // 新建目录
- export function builtDir(data) {
- return request({
- url: '/biz/dir',
- method: 'post',
- data: data
- })
- }
- export function fileCopy(data) {
- return request({
- url: `/biz/info/copy`,
- method: "get",
- params: data
- })
- }
- export function spaceInfo(type) {
- return request({
- url: `/biz/space/info/${type}`,
- method: "get",
- })
- }
- // 文件下载
- export function fileDownload(data){
- return request({
- url:`/biz/info/download/${data}`,
- method:"get"
- })
- }
- //测试
- export function uploadFileMany(data) {
- return request({
- url: `/biz/info/uploadFiles`,
- method: "post",
- data,
- })
- }
|