import{r as t}from"./index-CkzfmDGw.js";const o={page(e){return t({url:"/sys/notice/page",method:"get",params:e})},myNotices(e){return t({url:"/sys/notice/my",method:"get",params:e})},detail(e){return t({url:`/sys/notice/${e}`,method:"get"})},create(e){return t({url:"/sys/notice",method:"post",data:e})},update(e){return t({url:"/sys/notice",method:"put",data:e})},delete(e){return t({url:`/sys/notice/${e}`,method:"delete"})},publish(e){return t({url:`/sys/notice/${e}/publish`,method:"post"})},markAsRead(e){return t({url:`/sys/notice/${e}/read`,method:"post"})},markAllAsRead(){return t({url:"/sys/notice/read-all",method:"post"})},getUnreadCount(){return t({url:"/sys/notice/unread-count",method:"get"})},getChannels(){return t({url:"/sys/notice/channels",method:"get"})},getSendLogs(e){return t({url:`/sys/notice/${e}/send-logs`,method:"get"})},retry(e,r){return t({url:`/sys/notice/${e}/retry`,method:"post",params:{channel:r}})}},n={send(e){return t({url:"/sys/chat/send",method:"post",data:e})},getHistory(e,r){return t({url:`/sys/chat/history/${e}`,method:"get",params:r})},getContacts(){return t({url:"/sys/chat/contacts",method:"get"})},getUsers(){return t({url:"/sys/chat/users",method:"get"})},markAsRead(e){return t({url:`/sys/chat/read/${e}`,method:"post"})},getUnreadCount(){return t({url:"/sys/chat/unread-count",method:"get"})},isOnline(e){return t({url:`/sys/chat/online/${e}`,method:"get"})},clearHistory(e){return t({url:`/sys/chat/clear/${e}`,method:"delete"})},blockUser(e){return t({url:`/sys/chat/block/${e}`,method:"post"})},unblockUser(e){return t({url:`/sys/chat/block/${e}`,method:"delete"})},getBlacklist(){return t({url:"/sys/chat/blacklist",method:"get"})},isBlocked(e){return t({url:`/sys/chat/blocked/${e}`,method:"get"})}},a={create(e){return t({url:"/chat/group/create",method:"post",data:e})},list(){return t({url:"/chat/group/list",method:"get"})},detail(e){return t({url:`/chat/group/${e}`,method:"get"})},update(e){return t({url:"/chat/group/update",method:"put",data:e})},dissolve(e){return t({url:`/chat/group/${e}`,method:"delete"})},quit(e){return t({url:`/chat/group/${e}/quit`,method:"post"})},members(e){return t({url:`/chat/group/${e}/members`,method:"get"})},addMembers(e,r){return t({url:`/chat/group/${e}/members`,method:"post",data:{userIds:r}})},removeMember(e,r){return t({url:`/chat/group/${e}/members/${r}`,method:"delete"})},setAdmin(e,r,s){return t({url:`/chat/group/${e}/admin/${r}`,method:"post",params:{isAdmin:s}})},setMuted(e,r,s){return t({url:`/chat/group/${e}/mute/${r}`,method:"post",params:{muted:s}})},transferOwner(e,r){return t({url:`/chat/group/${e}/transfer/${r}`,method:"post"})},sendMessage(e,r,s){return t({url:`/chat/group/${e}/message`,method:"post",data:{content:r,msgType:s}})},getMessages(e,r=1,s=50){return t({url:`/chat/group/${e}/messages`,method:"get",params:{page:r,pageSize:s}})}};export{n as c,a as g,o as n};
