Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
1363fb07
Commit
1363fb07
authored
Apr 10, 2023
by
Administrator
Browse files
1.ResponseCode类中变量去掉final
2.BusinessRunTimeException 中增加get和set方法
parent
bfee3896
Changes
2
Hide whitespace changes
Inline
Side-by-side
jshERP-boot/src/main/java/com/jsh/erp/exception/BusinessRunTimeException.java
View file @
1363fb07
...
...
@@ -29,4 +29,22 @@ public class BusinessRunTimeException extends RuntimeException {
this
.
code
=
code
;
this
.
data
=
objectMap
;
}
public
int
getCode
()
{
return
code
;
}
public
void
setCode
(
int
code
)
{
this
.
code
=
code
;
}
public
Map
<
String
,
Object
>
getData
()
{
return
data
;
}
public
void
setData
(
Map
<
String
,
Object
>
data
)
{
this
.
data
=
data
;
}
}
jshERP-boot/src/main/java/com/jsh/erp/utils/ResponseCode.java
View file @
1363fb07
package
com.jsh.erp.utils
;
import
com.alibaba.fastjson.annotation.JSONCreator
;
import
com.alibaba.fastjson.annotation.JSONField
;
/**
* @author jishenghua qq752718920 2018-10-7 15:26:27
*/
public
class
ResponseCode
{
public
final
int
code
;
public
final
Object
data
;
/**
*
* @param code
* @param data
*/
@JSONCreator
public
ResponseCode
(
@JSONField
(
name
=
"code"
)
int
code
,
@JSONField
(
name
=
"data"
)
Object
data
)
{
this
.
code
=
code
;
this
.
data
=
data
;
}
}
\ No newline at end of file
package
com.jsh.erp.utils
;
import
com.alibaba.fastjson.annotation.JSONCreator
;
import
com.alibaba.fastjson.annotation.JSONField
;
/**
* @author jishenghua qq752718920 2018-10-7 15:26:27
*/
public
class
ResponseCode
{
/* public final int code;
public final Object data;*/
public
int
code
;
public
Object
data
;
/**
*
* @param code
* @param data
*/
@JSONCreator
public
ResponseCode
(
@JSONField
(
name
=
"code"
)
int
code
,
@JSONField
(
name
=
"data"
)
Object
data
)
{
this
.
code
=
code
;
this
.
data
=
data
;
}
}
Write
Preview
Supports
Markdown
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