小编Yas*_*oui的帖子

aria2c可以下载每个具有特定文件名的网址列表吗?

例如,我有一个URL列表:

https://link.com/file/get/somefile.ext
https://go.com/download/anotherfile.ext
https://program.com/selection/download.php?id=26162
Run Code Online (Sandbox Code Playgroud)

我想为最后一个URL设置一个特定的名称,如下所示:

https://program.com/selection/download.php?id=26162 -o thirdfile.ext
Run Code Online (Sandbox Code Playgroud)

是否可以使用aria2c下载列表语法?

我知道我可以这样做:

aria2c https://link.com/file/get/somefile.ext
aria2c https://go.com/download/anotherfile.ext
aria2c https://program.com/selection/download.php?id=26162 -o thirdfile.ext
Run Code Online (Sandbox Code Playgroud)

但是这样我运行的aria2c太多了.._.

download aria2

10
推荐指数
2
解决办法
5460
查看次数

Loopback POST 条目数组?

我想用一个查询针对 10 个查询插入 10 个条目。

我读到可以通过发送这样的数组来做到这一点: 在此输入图像描述

但我收到这个错误: 在此输入图像描述

我需要设置一些东西吗?我根本不知道该怎么办。

带有示例的仓库:https://github.com/mathias22osterhagen22/loopback-array-post-sample

编辑:people-model.ts:

import {Entity, model, property} from '@loopback/repository';

@model()
export class People extends Entity {
  @property({
    type: 'number',
    id: true,
    generated: true,
  })
  id?: number;

  @property({
    type: 'string',
    required: true,
  })
  name: string;


  constructor(data?: Partial<People>) {
    super(data);
  }
}

export interface PeopleRelations {
  // describe navigational properties here
}

export type PeopleWithRelations = People & PeopleRelations;

Run Code Online (Sandbox Code Playgroud)

post loopbackjs loopback4

2
推荐指数
1
解决办法
1800
查看次数

标签 统计

aria2 ×1

download ×1

loopback4 ×1

loopbackjs ×1

post ×1