Commit d9013215 by zhengnw@sobot.com

net 1.2.5

parent 17c53741
package com.sobot.common.login;
public interface SobotCommonConstant {
String SOBOT_TOKEN = "token";//token标志,接口请求时,header必须带此参数
String KEY_TEMP_ID = "temp-id";//token标志,接口请求时,header必须带此参数
String RESULT_SUCCESS_CODE = "000000";
String RESULT_SUCCESS_CODE_SECOND = "1";
}
\ No newline at end of file
......@@ -12,7 +12,7 @@ task androidSourcesJar(type: Jar) {
ext {
PUBLISH_GROUP_ID = "com.sobot.library" //项目包名
PUBLISH_ARTIFACT_ID = 'net' //项目名
PUBLISH_VERSION = '1.2.3' //版本号
PUBLISH_VERSION = '1.2.5' //版本号
}
......
......@@ -9,6 +9,8 @@ public class SobotBaseCode<T> implements Serializable {
private String retMsg;
private String code;
private String msg;
public T item;
public int totalCount;
public String getRetCode() {
return retCode;
......@@ -49,4 +51,20 @@ public class SobotBaseCode<T> implements Serializable {
public void setMsg(String msg) {
this.msg = msg;
}
public T getItem() {
return item;
}
public void setItem(T item) {
this.item = item;
}
public int getTotalCount() {
return totalCount;
}
public void setTotalCount(int totalCount) {
this.totalCount = totalCount;
}
}
\ No newline at end of file
package com.sobot.network.apiUtils;
public interface SobotNetConstant {
String RESULT_SUCCESS_CODE = "000000";
String RESULT_SUCCESS_CODE_SECOND = "1";
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment