public abstract class BaseCmd extends Object
| 构造器和说明 |
|---|
BaseCmd() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected Response |
failed(ErrorCode errorCode)
返回预定义的失败对象
Returns the predefined failed object
|
protected Response |
failed(ErrorCode errorCode,
String errMsg)
预定义失败对象,同时带有自定义错误消息
Predefined failed object with a custom error message
|
protected Response |
failed(String errMsg)
返回自定义错误消息的失败对象
Returns the failed object of the custom error message
|
protected void |
setConfigItem(String key,
Object value,
boolean readOnly)
设置模块配置参数
Setting Module Configuration Parameters
|
protected Response |
success()
返回基本的成功对象
Returns the basic success object
|
protected Response |
success(Object responseData)
返回有特定内容的成功对象
Returns a success object with specific content
|
protected void setConfigItem(String key, Object value, boolean readOnly)
key - Keyvalue - ValuereadOnly - Read only?protected Response success()
protected Response success(Object responseData)
responseData - Object, can be any valuesprotected Response failed(ErrorCode errorCode)
errorCode - ErrorCodeprotected Response failed(String errMsg)
errMsg - User defined error messageCopyright © 2021. All rights reserved.