REM:
1. 添加.gitignore配置文件
2. 更新协议,将协议详细内容改为字符串
This commit is contained in:
huangxin 2020-03-27 18:04:25 +08:00
parent 96d686d975
commit 284a589787
3 changed files with 4 additions and 3 deletions

1
.gitignore vendored
View File

@ -111,3 +111,4 @@ buildNumber.properties
/phoenix-data.iml
/phoenix-boot.iml
/logs/

View File

@ -85,6 +85,6 @@ public class ProtocolController {
.cryptoType(mr.getCryptoType())
.timeStamp(System.currentTimeMillis())
.code(Resp.SUCCESS.getCode())
.msgContent(new String[] {msgCtx}).build();
.msgContent(msgCtx).build();
}
}

View File

@ -40,14 +40,14 @@ public class ProtocolResp {
"保存该cmdId命令相关的详细内容\n" +
"具体每个cmdId命令的详细内容参看对应的命令协议定义", required = false,
example = "{}")
private String[] msgContent;
private String msgContent;
@ApiModelProperty(value="服务器返回状态码", required = false,
example = "200")
private int code;
public static ProtocolResp result(Resp resp) {
return ProtocolResp.builder().code(resp.getCode()).msgContent(new String[] {resp.getMsg()}).build();
return ProtocolResp.builder().code(resp.getCode()).msgContent(resp.getMsg()).build();
}
public static ProtocolResp result(Resp resp, ProtocolResp obj) {