当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript Rest.put方法代码示例

本文整理汇总了TypeScript中core/rest.Rest.put方法的典型用法代码示例。如果您正苦于以下问题:TypeScript Rest.put方法的具体用法?TypeScript Rest.put怎么用?TypeScript Rest.put使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在core/rest.Rest的用法示例。


在下文中一共展示了Rest.put方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。

示例1: updateSettings

 updateSettings(settings: RollcallSettings): Observable<void> {
     return this.rest.put(`${this.getSettingApi()}?type=settings`, settings).do(() => {
         this.settings.hideFree = settings.hideFree;
         this.settings.hideLeave = settings.hideLeave;
         this.settings.hideCancel = settings.hideCancel;
         this.settings.random = settings.random;
     });
 }
开发者ID:Gitjerryzhong,项目名称:bell-tm-static,代码行数:8,代码来源:form.service.ts

示例2: updateSecretary

 updateSecretary(subjectId: string, secretaryId: string): Observable<void> {
     return this.rest.put(this.api.item(subjectId), {secretaryId});
 }
开发者ID:Gitjerryzhong,项目名称:bell-tm-static,代码行数:3,代码来源:subject-director.service.ts

示例3: updateDirector

 updateDirector(subjectId: string, directorId: string): Observable<void> {
     return this.rest.put(this.api.item(subjectId), {directorId});
 }
开发者ID:Gitjerryzhong,项目名称:bell-tm-static,代码行数:3,代码来源:subject-director.service.ts

示例4:

 this.dialog.open(MentorSelectDialog).then(result => {
     this.rest.put(`${this.api.item(this.form.id)}`, {teacherId: result})
         .subscribe(() => this.form.paperApprover = result);
 });
开发者ID:Gitjerryzhong,项目名称:bell-tm-static,代码行数:4,代码来源:approval-item.component.ts

示例5: update

 update(programId: number, options: any): Observable<void> {
     return this.rest.put(this.api.item(programId), options);
 }
开发者ID:Gitjerryzhong,项目名称:bell-tm-static,代码行数:3,代码来源:program-settings.service.ts

示例6: updateViewType

 updateViewType(viewType: string): Observable<void> {
     return this.rest.put(`${this.getSettingApi()}?type=view`, {view: viewType}).do(() => {
         this.viewType = viewType;
     });
 }
开发者ID:Gitjerryzhong,项目名称:bell-tm-static,代码行数:5,代码来源:form.service.ts

示例7: update

 update(timeslotId: number, week: number, id: number, data: object): Observable<{attendances: AttendanceDto}> {
     return this.rest.put(`${this.getRollcallApi(timeslotId, week)}/${id}`, data);
 }
开发者ID:Gitjerryzhong,项目名称:bell-tm-static,代码行数:3,代码来源:form.service.ts


注:本文中的core/rest.Rest.put方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。