You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
306 B

package com.example.crawler.command;
/**
* 命令接口
* 定义命令执行的标准方法,实现Command模式
*/
public interface Command {
/**
* 执行命令
*/
void execute();
/**
* 获取命令名称
*
* @return 命令名称
*/
String getName();
}