提交 | 用户 | 时间
|
1ac2bc
|
1 |
/** |
懒 |
2 |
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng) |
|
3 |
* <p> |
|
4 |
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
5 |
* you may not use this file except in compliance with the License. |
|
6 |
* You may obtain a copy of the License at |
|
7 |
* <p> |
|
8 |
* http://www.apache.org/licenses/LICENSE-2.0 |
|
9 |
* <p> |
|
10 |
* Unless required by applicable law or agreed to in writing, software |
|
11 |
* distributed under the License is distributed on an "AS IS" BASIS, |
|
12 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
13 |
* See the License for the specific language governing permissions and |
|
14 |
* limitations under the License. |
|
15 |
*/ |
|
16 |
package cn.stylefeng.guns.base.log; |
|
17 |
|
|
18 |
import cn.stylefeng.guns.base.dict.AbstractDictMap; |
|
19 |
import cn.stylefeng.guns.base.dict.SystemDict; |
|
20 |
|
|
21 |
import java.lang.annotation.*; |
|
22 |
|
|
23 |
/** |
|
24 |
* 标记需要做业务日志的方法 |
|
25 |
* |
|
26 |
* @author fengshuonan |
|
27 |
* @date 2017-03-31 12:46 |
|
28 |
*/ |
|
29 |
@Inherited |
|
30 |
@Retention(RetentionPolicy.RUNTIME) |
|
31 |
@Target({ElementType.METHOD}) |
|
32 |
public @interface BussinessLog { |
|
33 |
|
|
34 |
/** |
|
35 |
* 业务的名称,例如:"修改菜单" |
|
36 |
*/ |
|
37 |
String value() default ""; |
|
38 |
|
|
39 |
/** |
|
40 |
* 被修改的实体的唯一标识,例如:菜单实体的唯一标识为"id" |
|
41 |
*/ |
|
42 |
String key() default "id"; |
|
43 |
|
|
44 |
/** |
|
45 |
* 字典(用于查找key的中文名称和字段的中文名称) |
|
46 |
*/ |
|
47 |
Class<? extends AbstractDictMap> dict() default SystemDict.class; |
|
48 |
} |