|
|
@ -51,7 +51,7 @@ export class RequestService extends BaseService {
|
|
|
|
private static buildJoinGroupBody(id: number): any {
|
|
|
|
private static buildJoinGroupBody(id: number): any {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
query: `mutation($id: ID!) {
|
|
|
|
query: `mutation($id: ID!) {
|
|
|
|
joinGroup(id: $id) {
|
|
|
|
joinGroup(groupId: $id) {
|
|
|
|
id
|
|
|
|
id
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}`
|
|
|
|
}`
|
|
|
@ -127,6 +127,7 @@ export class RequestService extends BaseService {
|
|
|
|
* @param group
|
|
|
|
* @param group
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public joinGroup(groupId: number) {
|
|
|
|
public joinGroup(groupId: number) {
|
|
|
|
|
|
|
|
console.log('join group' + groupId);
|
|
|
|
return this.postGraphql(RequestService.buildJoinGroupBody(groupId));
|
|
|
|
return this.postGraphql(RequestService.buildJoinGroupBody(groupId));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|