0
在我的應用程序服務中,爲什麼要返回ListResultDto
而不是返回List
?ListResultDto和List之間的區別
這似乎是額外的工作。
在前端,這意味着我需要訪問items
屬性,而不是將結果視爲數組,例如,
使用ListResultDto
.subscribe((next) => this.entities = next.items);
使用List
.subscrube((next) => this.entities = next);