|
|
@ -50,6 +50,10 @@ class GroupService extends TcService {
|
|
|
|
params: {
|
|
|
|
params: {
|
|
|
|
groupId: 'string',
|
|
|
|
groupId: 'string',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
cache: {
|
|
|
|
|
|
|
|
keys: ['groupId'],
|
|
|
|
|
|
|
|
ttl: 60 * 60, // 1 hour
|
|
|
|
|
|
|
|
},
|
|
|
|
});
|
|
|
|
});
|
|
|
|
this.registerAction('getGroupInfo', this.getGroupInfo, {
|
|
|
|
this.registerAction('getGroupInfo', this.getGroupInfo, {
|
|
|
|
params: {
|
|
|
|
params: {
|
|
|
@ -1204,6 +1208,7 @@ class GroupService extends TcService {
|
|
|
|
* @param groupId 群组id
|
|
|
|
* @param groupId 群组id
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
private cleanGroupInfoCache(groupId: string) {
|
|
|
|
private cleanGroupInfoCache(groupId: string) {
|
|
|
|
|
|
|
|
this.cleanActionCache('getGroupBasicInfo', [groupId]);
|
|
|
|
this.cleanActionCache('getGroupInfo', [groupId]);
|
|
|
|
this.cleanActionCache('getGroupInfo', [groupId]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|