例如,我有一个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太多了.._.
我想用一个查询针对 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)