This commit is contained in:
cansnow
2025-12-24 04:12:56 +08:00
parent f49f1f1ad1
commit f289f79813
26 changed files with 636 additions and 484 deletions
+21
View File
@@ -41,6 +41,9 @@ const mutations = {
const actions = {
async getFriendList({commit }) {
//#ifndef APP
return [];
//#endif
let offset = 0;
let friendInfoList = [];
let initialFetch = true;
@@ -63,6 +66,9 @@ const actions = {
commit("SET_FRIEND_LIST", friendInfoList);
},
async getGrouplist({commit}) {
//#ifndef APP
return [];
//#endif
let offset = 0;
let groupList = [];
while (true) {
@@ -86,6 +92,9 @@ const actions = {
commit("SET_GROUP_LIST", groupList);
},
getBlacklist({commit}) {
//#ifndef APP
return [];
//#endif
IMSDK.asyncApi(IMSDK.IMMethods.GetBlackList, uuidv4()).then(({
data
}) => {
@@ -93,6 +102,9 @@ const actions = {
});
},
getRecvFriendApplications({commit}) {
//#ifndef APP
return [];
//#endif
IMSDK.asyncApi(
IMSDK.IMMethods.GetFriendApplicationListAsRecipient,
uuidv4(),
@@ -103,6 +115,9 @@ const actions = {
});
},
getSentFriendApplications({ commit }) {
//#ifndef APP
return [];
//#endif
IMSDK.asyncApi(
IMSDK.IMMethods.GetFriendApplicationListAsApplicant,
uuidv4(),
@@ -113,6 +128,9 @@ const actions = {
});
},
getRecvGroupApplications({ commit }) {
//#ifndef APP
return [];
//#endif
IMSDK.asyncApi(
IMSDK.IMMethods.GetGroupApplicationListAsRecipient,
uuidv4(),
@@ -123,6 +141,9 @@ const actions = {
});
},
getSentGroupApplications({ commit }) {
//#ifndef APP
return [];
//#endif
IMSDK.asyncApi(
IMSDK.IMMethods.GetGroupApplicationListAsApplicant,
uuidv4(),
+12
View File
@@ -45,6 +45,9 @@ const mutations = {
const actions = {
async getConversationList({state,commit}, isFirstPage = true) {
//#ifndef APP
return [];
//#endif
try {
const {data} = await IMSDK.asyncApi(
IMSDK.IMMethods.GetConversationListSplit,
@@ -65,6 +68,9 @@ const actions = {
}
},
getCurrentGroup({commit}, groupID) {
//#ifndef APP
return [];
//#endif
IMSDK.asyncApi(IMSDK.IMMethods.GetSpecifiedGroupsInfo, uuidv4(), [
groupID,
]).then(({
@@ -74,6 +80,9 @@ const actions = {
});
},
getCurrentMemberInGroup({commit,rootState}, groupID) {
//#ifndef APP
return [];
//#endif
IMSDK.asyncApi(IMSDK.IMMethods.GetSpecifiedGroupMembersInfo, uuidv4(), {
groupID,
userIDList: [rootState.user.selfInfo.userID],
@@ -84,6 +93,9 @@ const actions = {
});
},
getUnReadCount({commit}) {
//#ifndef APP
return [];
//#endif
IMSDK.asyncApi(IMSDK.IMMethods.GetTotalUnreadMsgCount, uuidv4()).then(
(res) => {
//console.log(res);
+3
View File
@@ -29,6 +29,9 @@ const actions = {
commit("SET_CURRENT_MSG", message);
},
async getHistoryMesageList({commit,state}, params) {
//#ifndef APP
return [];
//#endif
let emptyFlag = true;
try {
//console.log(params);
+3
View File
@@ -39,6 +39,9 @@ const mutations = {
const actions = {
async getSelfInfo({ commit }) {
//#ifndef APP
return [];
//#endif
try {
const result = await IMSDK.asyncApi(IMSDK.IMMethods.GetSelfUserInfo,uuidv4(),);
const res = await businessGetUserInfo(result.data.userID);