Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
Sobot_module_Dev
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sobot_android
Sobot_module_Dev
Commits
17c53741
Commit
17c53741
authored
Apr 16, 2024
by
zhengnw@sobot.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
net base code 支持code 和retcode
parent
a3d47ff9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
10 deletions
+38
-10
SobotBaseCode.java
...c/main/java/com/sobot/network/apiUtils/SobotBaseCode.java
+31
-10
SobotNetConstant.java
...ain/java/com/sobot/network/apiUtils/SobotNetConstant.java
+7
-0
No files found.
sobot_network/src/main/java/com/sobot/network/apiUtils/SobotBaseCode.java
View file @
17c53741
package
com
.
sobot
.
network
.
apiUtils
;
public
class
SobotBaseCode
<
T
>
{
import
java.io.Serializable
;
private
String
code
;
public
class
SobotBaseCode
<
T
>
implements
Serializable
{
private
String
retCode
;
private
T
data
;
private
String
retMsg
;
private
String
code
;
private
String
msg
;
public
String
get
Msg
()
{
return
msg
;
public
String
get
RetCode
()
{
return
retCode
;
}
public
void
setMsg
(
String
msg
)
{
this
.
msg
=
msg
;
public
void
setRetCode
(
String
retCode
)
{
this
.
retCode
=
retCode
;
}
public
T
getData
()
{
return
data
;
}
public
void
setData
(
T
data
)
{
this
.
data
=
data
;
}
public
String
getRetMsg
()
{
return
retMsg
;
}
public
void
setRetMsg
(
String
retMsg
)
{
this
.
retMsg
=
retMsg
;
}
public
String
getCode
()
{
...
...
@@ -22,11 +42,11 @@ public class SobotBaseCode<T> {
this
.
code
=
code
;
}
public
T
getData
()
{
return
data
;
public
String
getMsg
()
{
return
msg
;
}
public
void
set
Data
(
T
data
)
{
this
.
data
=
data
;
public
void
set
Msg
(
String
msg
)
{
this
.
msg
=
msg
;
}
}
\ No newline at end of file
sobot_network/src/main/java/com/sobot/network/apiUtils/SobotNetConstant.java
0 → 100644
View file @
17c53741
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment