parent
96d686d975
commit
284a589787
|
@ -111,3 +111,4 @@ buildNumber.properties
|
||||||
|
|
||||||
/phoenix-data.iml
|
/phoenix-data.iml
|
||||||
/phoenix-boot.iml
|
/phoenix-boot.iml
|
||||||
|
/logs/
|
||||||
|
|
|
@ -85,6 +85,6 @@ public class ProtocolController {
|
||||||
.cryptoType(mr.getCryptoType())
|
.cryptoType(mr.getCryptoType())
|
||||||
.timeStamp(System.currentTimeMillis())
|
.timeStamp(System.currentTimeMillis())
|
||||||
.code(Resp.SUCCESS.getCode())
|
.code(Resp.SUCCESS.getCode())
|
||||||
.msgContent(new String[] {msgCtx}).build();
|
.msgContent(msgCtx).build();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,14 +40,14 @@ public class ProtocolResp {
|
||||||
"保存该cmdId命令相关的详细内容,\n" +
|
"保存该cmdId命令相关的详细内容,\n" +
|
||||||
"具体每个cmdId命令的详细内容参看对应的命令协议定义", required = false,
|
"具体每个cmdId命令的详细内容参看对应的命令协议定义", required = false,
|
||||||
example = "{}")
|
example = "{}")
|
||||||
private String[] msgContent;
|
private String msgContent;
|
||||||
|
|
||||||
@ApiModelProperty(value="服务器返回状态码", required = false,
|
@ApiModelProperty(value="服务器返回状态码", required = false,
|
||||||
example = "200")
|
example = "200")
|
||||||
private int code;
|
private int code;
|
||||||
|
|
||||||
public static ProtocolResp result(Resp resp) {
|
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) {
|
public static ProtocolResp result(Resp resp, ProtocolResp obj) {
|
||||||
|
|
Loading…
Reference in New Issue