File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed
java/io/mybatis/common/core
test/java/io/mybatis/common/util Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ public class Code {
2828 public static final I18n .Language LANG = I18n .language (CODE_BUNDLE );
2929 public static final Code SUCCESS = new Code ("00000" );
3030 public static final Code FAILURE = new Code ("M0100" );
31- public static final Code UNKONWN = new Code ("M0200" );
31+ public static final Code UNKNOWN = new Code ("M0200" );
3232 public static final Code SAVE_FAILURE = new Code ("M0201" );
3333 public static final Code UPDATE_FAILURE = new Code ("M0202" );
3434 public static final Code DELETE_FAILURE = new Code ("M0203" );
Original file line number Diff line number Diff line change @@ -47,15 +47,15 @@ public static Response ok() {
4747 }
4848
4949 public static Response error () {
50- return error (Code .UNKONWN );
50+ return error (Code .UNKNOWN );
5151 }
5252
5353 public static Response error (String code ) {
5454 return error (code , I18n .message (RESPONSE_BUNDLE , code ));
5555 }
5656
5757 public static Response error (Throwable t ) {
58- return error (Code .UNKONWN .getCode (), t .getMessage ());
58+ return error (Code .UNKNOWN .getCode (), t .getMessage ());
5959 }
6060
6161 public static Response error (ServiceException e ) {
Original file line number Diff line number Diff line change 1515#
161600000 =Success
1717M0100 =Failure
18- M0200 =Unkonwn
18+ M0200 =Unknown
1919M0201 =Save failure
2020M0202 =Update failure
2121M0203 =Delete failure
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ public void testCode() {
2828 Locale .setDefault (Locale .CHINA );
2929 org .junit .Assert .assertEquals ("操作成功" , Code .SUCCESS .getMessage ());
3030 org .junit .Assert .assertEquals ("操作失败" , Code .FAILURE .getMessage ());
31- org .junit .Assert .assertEquals ("未知错误" , Code .UNKONWN .getMessage ());
31+ org .junit .Assert .assertEquals ("未知错误" , Code .UNKNOWN .getMessage ());
3232 org .junit .Assert .assertEquals ("保存失败" , Code .SAVE_FAILURE .getMessage ());
3333 org .junit .Assert .assertEquals ("修改失败" , Code .UPDATE_FAILURE .getMessage ());
3434 org .junit .Assert .assertEquals ("删除失败" , Code .DELETE_FAILURE .getMessage ());
You can’t perform that action at this time.
0 commit comments