本文整理汇总了TypeScript中app/shared/services/pg.service.PgService类的典型用法代码示例。如果您正苦于以下问题:TypeScript service.PgService类的具体用法?TypeScript service.PgService怎么用?TypeScript service.PgService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了service.PgService类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的TypeScript代码示例。
示例1: addContact
async addContact(contact: Contact): Promise<any>{
const headers = new Headers();
headers.append('Content-Type', 'application/json');
headers.append('token', this.pg.getToken());
console.log("Token: " + this.pg.getToken());
return await this.pg.post('contacts', contact, headers);
}
开发者ID:nguyennhutkhanh,项目名称:callcenter,代码行数:7,代码来源:contact.service.ts
示例2: updateRole
updateRole(role: RoleJSon): Promise<any>{
const headers = new Headers();
headers.append('Content-Type', 'application/json');
headers.append('token', this.pg.getToken());
return this.pg.put('aclRoles', role, headers);
}
开发者ID:nguyennhutkhanh,项目名称:callcenter,代码行数:7,代码来源:role.service.ts
示例3: updateDept
updateDept(dept: Department): Promise<any>{
const headers = new Headers();
headers.append('Content-Type', 'application/json');
headers.append('token', this.pg.getToken());
return this.pg.put('department', dept, headers);
}
开发者ID:nguyennhutkhanh,项目名称:callcenter,代码行数:7,代码来源:department.service.ts
示例4: updateCase
updateCase(caseJson: Case): Promise<any>{
const headers = new Headers();
headers.append('Content-Type', 'application/json');
headers.append('token', this.pg.getToken());
console.log(this.pg.getToken());
return this.pg.put('cases', caseJson, headers);
}
开发者ID:nguyennhutkhanh,项目名称:callcenter,代码行数:7,代码来源:case.service.ts
示例5: UpdateUser
UpdateUser(user: User): Promise<any>{
const headers = new Headers();
headers.append('Content-Type', 'application/json');
headers.append('token', this.pg.getToken());
return this.pg.put('users', user, headers);
}
开发者ID:nguyennhutkhanh,项目名称:callcenter,代码行数:7,代码来源:user.service.ts
示例6: updateAccount
async updateAccount(account: AccountJSon): Promise<any>{
const headers = new Headers();
headers.append('Content-Type', 'application/json');
headers.append('token', this.pg.getToken());
return await this.pg.put('accounts', account, headers);
}
开发者ID:nguyennhutkhanh,项目名称:callcenter,代码行数:7,代码来源:account.service.ts
示例7: updateTask
updateTask(task: TaskJson): Promise<any>{
const headers = new Headers();
headers.append('Content-Type', 'application/json');
headers.append('token', this.pg.getToken());
return this.pg.put('tasks', task, headers);
}
开发者ID:nguyennhutkhanh,项目名称:callcenter,代码行数:7,代码来源:task.service.ts
示例8: deleteUserOfDept
deleteUserOfDept(deptId: string, userId: string): Promise<any>{
const headers = new Headers();
headers.append('Content-Type', 'application/json');
headers.append('token', this.pg.getToken());
console.log(this.pg.getToken());
return this.pg.post('department/removeUser/' + deptId + "/" + userId, {}, headers);
}
开发者ID:nguyennhutkhanh,项目名称:callcenter,代码行数:7,代码来源:department.service.ts
示例9: updateCall
async updateCall(call: Call): Promise<any>{
const headers = new Headers();
headers.append('Content-Type', 'application/json');
headers.append('token', this.pg.getToken());
return await this.pg.put('calls', call, headers);
}
开发者ID:nguyennhutkhanh,项目名称:callcenter,代码行数:7,代码来源:call.service.ts
示例10: updateContact
async updateContact(contact: Contact): Promise<any>{
const headers = new Headers();
headers.append('Content-Type', 'application/json');
headers.append('token', this.pg.getToken());
return await this.pg.put('contacts', contact, headers);
}
开发者ID:nguyennhutkhanh,项目名称:callcenter,代码行数:7,代码来源:contact.service.ts
注:本文中的app/shared/services/pg.service.PgService类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论