Skip to content

Commit 85ea1ec

Browse files
committed
Change-Id: I7025c91b442e983892b31b66c737bb35c7f39041 Signed-off-by: HY-ZhengWei <HY.ZhengWei@qq.com>
0 parents  commit 85ea1ec

File tree

249 files changed

+18697
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

249 files changed

+18697
-0
lines changed

LICENSE

+674
Large diffs are not rendered by default.

WebContent/META-INF/MANIFEST.MF

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Manifest-Version: 1.0.0
2+
Created-By: 2014-09 (HY.ZhengWei@qq.com ,WangZhanBin)
3+
Specification-Version: 1.0.0
+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<beans>
2+
3+
<service xmlns="http://xfire.codehaus.org/config/1.0">
4+
<name>TestService</name>
5+
<namespace>http://www.hy.com/TestService</namespace>
6+
<serviceClass>org.hy.log.appInterfaces.ITestService</serviceClass>
7+
<implementationClass>org.hy.log.appInterfaces.webservice.TestServiceImpl</implementationClass>
8+
</service>
9+
10+
</beans>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<config>
4+
5+
<import name="xconfig" class="java.util.ArrayList" />
6+
<import name="I18N" class="org.hy.common.I18N" />
7+
<import name="iText" class="org.hy.common.app.Param" />
8+
<import name="errors" class="java.util.Hashtable" />
9+
<import name="error" class="org.hy.log.msg.MsgErrorResponse" />
10+
11+
12+
13+
<!-- 日志模块相关的接口错误 -->
14+
<xconfig>
15+
16+
<!-- 初始化国际化语言信息:中文 -->
17+
<I18N id="I18N_Error" this="I18N_Error">
18+
<language>cn</language>
19+
20+
<iText>
21+
<name>130101A001</name>
22+
<value>记录日志:消息体为空或消息体格式异常</value>
23+
</iText>
24+
25+
<iText>
26+
<name>130101A011</name>
27+
<value>记录日志:[系统编号]不可为空</value>
28+
</iText>
29+
30+
<iText>
31+
<name>130101A021</name>
32+
<value>记录日志:[系统编号]超过最大长度:15</value>
33+
</iText>
34+
35+
<iText>
36+
<name>130101A031</name>
37+
<value>记录日志:[系统编号]不能包含汉字</value>
38+
</iText>
39+
40+
<iText>
41+
<name>130101A041</name>
42+
<value>记录日志:[系统编号]只能由英文、数字(0~9)和下划线组成</value>
43+
</iText>
44+
45+
<iText>
46+
<name>130101A051</name>
47+
<value>记录日志:没有任何数据被用于记录,为什么要调用我啊?</value>
48+
</iText>
49+
50+
<iText>
51+
<name>130101A061</name>
52+
<value>记录日志:[日志操作时间]小于当前时间减去10小时的范围。时间容错范围为:10小时</value>
53+
</iText>
54+
55+
<iText>
56+
<name>130101A071</name>
57+
<value>记录日志:[日志操作时间]大于当前时间加上10小时的范围。时间容错范围为:10小时</value>
58+
</iText>
59+
60+
<iText>
61+
<name>130101A081</name>
62+
<value>记录日志:未知异常错误</value>
63+
</iText>
64+
65+
<iText>
66+
<name>130101B011</name>
67+
<value>记录日志:操作数据库异常</value>
68+
</iText>
69+
70+
<iText>
71+
<name>130101C011</name>
72+
<value>记录日志:操作日志文件异常</value>
73+
</iText>
74+
75+
76+
77+
<!-- 下面是注册相关的错误 -->
78+
<iText>
79+
<name>130102A001</name>
80+
<value>注册日志:消息体为空或消息体格式异常</value>
81+
</iText>
82+
83+
<iText>
84+
<name>130102A011</name>
85+
<value>注册日志:[系统编号]不可为空</value>
86+
</iText>
87+
88+
<iText>
89+
<name>130102A021</name>
90+
<value>注册日志:[系统编号]超过最大长度:15</value>
91+
</iText>
92+
93+
<iText>
94+
<name>130102A031</name>
95+
<value>注册日志:[系统编号]不能包含汉字</value>
96+
</iText>
97+
98+
<iText>
99+
<name>130102A041</name>
100+
<value>注册日志:[系统编号]只能由英文、数字(0~9)和下划线组成</value>
101+
</iText>
102+
103+
<iText>
104+
<name>130102A051</name>
105+
<value>注册日志:[注册类型]为空或格式范围异常</value>
106+
</iText>
107+
108+
<iText>
109+
<name>130102B011</name>
110+
<value>注册日志:注册时访问或操作数据库异常</value>
111+
</iText>
112+
113+
<iText>
114+
<name>130102B021</name>
115+
<value>注册日志:更改注册类型时,新老注册类型一样无须修改</value>
116+
</iText>
117+
118+
<iText>
119+
<name>130102B031</name>
120+
<value>注册日志:更改注册类型时,访问或操作数据库异常</value>
121+
</iText>
122+
123+
<iText>
124+
<name>130102B041</name>
125+
<value>注册日志:创建日志表时操作数据库异常</value>
126+
</iText>
127+
128+
</I18N>
129+
130+
131+
132+
<!-- 初始化国际化语言信息:英文 -->
133+
<I18N id="I18N_Error" this="I18N_Error">
134+
<language>en</language>
135+
136+
</I18N>
137+
138+
</xconfig>
139+
140+
</config>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<config>
4+
5+
<import name="xconfig" class="java.util.ArrayList" />
6+
<import name="I18N" class="org.hy.common.I18N" />
7+
<import name="iText" class="org.hy.common.app.Param" />
8+
<import name="errors" class="java.util.LinkedHashMap" />
9+
<import name="error" class="org.hy.log.msg.MsgErrorResponse" />
10+
11+
12+
13+
<!-- 通用模块相关的接口错误 -->
14+
<!--
15+
错误编码格式:AA BB CC DDD E
16+
错误编码共10位编码;
17+
AA 表示系统名称 ,用数字表示; 例:01表示商城前台系统、02表示商城管理系统;
18+
BB 表示模块(类)名称,用数字表示; 例:01表示商家信息模块、02表示商铺信息模块;
19+
CC 表示业务操作名称,用数字表示; 例:01表示创建订单、02表示终止订单;
20+
DDD表示信息编号 ,用数字和字母表示; 例:A01表示创建订单时的数据存储服务,A02表示订单校验错误;建议字母全为大字
21+
E 表示错误类别 ,用数字表示; ‘0’和‘1’表示系统类错误和业务类错误;
22+
23+
统一规范:
24+
01:商城前台
25+
02:商城运营管理
26+
03:第三方接口
27+
04:业务逻辑
28+
05:CMS
29+
06:会员
30+
07:商户
31+
08:商品
32+
09:结算
33+
10:订单
34+
11:诚信评价
35+
12:系统管理
36+
37+
订单系统的模块分类(BB级)
38+
00:通用模块
39+
01:创单模块 - Order.Create
40+
02:查单模块 - Order.Query
41+
03:跟单模块 - Order.Follow
42+
04:改单模块 - Order.Edit
43+
05:销单模块 - Order.Finish
44+
06:退单模块 - Order.Return
45+
-->
46+
<xconfig>
47+
48+
<!-- 初始化国际化语言信息:中文 -->
49+
<I18N id="I18N_Error" this="I18N_Error">
50+
<language>cn</language>
51+
52+
<iText>
53+
<name>1300000000</name>
54+
<value>日志系统:请检查您的消息头及消息体是否正确。并且请确认您有访问权限。</value>
55+
</iText>
56+
57+
<iText>
58+
<name>1300000010</name>
59+
<value>日志系统:请检查您消息头中的[接口版本]是否正确。并且请确认您有访问权限。</value>
60+
</iText>
61+
62+
</I18N>
63+
64+
65+
66+
<!-- 初始化国际化语言信息:英文 -->
67+
<I18N id="I18N_Error" this="I18N_Error">
68+
<language>en</language>
69+
70+
<iText>
71+
<name>1300000000</name>
72+
<value>Log system: Please check the message header and message body you are correct. And make sure you have permission to access.</value>
73+
</iText>
74+
75+
<iText>
76+
<name>1300000010</name>
77+
<value>Log system: Please check the [interface version] of your message header is correct. And make sure you have permission to access.</value>
78+
</iText>
79+
80+
</I18N>
81+
82+
83+
84+
<!-- 统一设置国际化语言版本 -->
85+
<I18N this="I18N_Error">
86+
<language ref="SYS_LANGUAGE.getValue" />
87+
</I18N>
88+
89+
90+
91+
<!-- 定义接口错误信息 -->
92+
<!-- 但一般情况下,不用手工添加,由程序自动加载到内存中。 -->
93+
<!-- 只对共用I18N的多个不同接口错误编号添加一下即可 -->
94+
<errors id="AppInterfaces_Error" key="errorCode">
95+
96+
<!-- 添加样例
97+
<error>
98+
<errorCode>AABBCCDDDE</errorCode>
99+
<errorInfo ref="I18N_Error.getITextInfo(1300000000)"/>
100+
</error>
101+
-->
102+
103+
</errors>
104+
105+
</xconfig>
106+
107+
</config>

0 commit comments

Comments
 (0)