|
@@ -378,11 +378,18 @@ export class CommonContentApi extends AppServerRequestModule<DataModel> {
|
|
|
* @param querys 额外参数
|
|
* @param querys 额外参数
|
|
|
* @returns
|
|
* @returns
|
|
|
*/
|
|
*/
|
|
|
- async getContentList<T extends DataModel = GetContentListItem>(params: GetContentListParams, page: number, pageSize: number = 10, modelClassCreator: NewDataModel = GetContentListItem, querys?: QueryParams) {
|
|
|
|
|
|
|
+ async getContentList<T extends DataModel = GetContentListItem>(
|
|
|
|
|
+ params: GetContentListParams,
|
|
|
|
|
+ page: number,
|
|
|
|
|
+ pageSize: number = 10,
|
|
|
|
|
+ modelClassCreator: NewDataModel = GetContentListItem,
|
|
|
|
|
+ isNearby?: boolean,
|
|
|
|
|
+ querys?: QueryParams
|
|
|
|
|
+ ) {
|
|
|
const res = await this.get<{
|
|
const res = await this.get<{
|
|
|
list: any[],
|
|
list: any[],
|
|
|
total: number,
|
|
total: number,
|
|
|
- }>('/content/content/getContentList', `${this.debugName} 模型内容列表`, {
|
|
|
|
|
|
|
+ }>(`/content/content/${isNearby ? 'getNearbyList' : 'getContentList'}`, `${this.debugName} 模型内容列表`, {
|
|
|
...params.toServerSide(),
|
|
...params.toServerSide(),
|
|
|
model_id: params.modelId || this.modelId,
|
|
model_id: params.modelId || this.modelId,
|
|
|
main_body_id: params.mainBodyId || this.mainBodyId,
|
|
main_body_id: params.mainBodyId || this.mainBodyId,
|