18
This commit is contained in:
@@ -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(),
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user