Skip to content

Commit

Permalink
mvc @ Ok添加注释
Browse files Browse the repository at this point in the history
  • Loading branch information
TomYule committed Nov 21, 2018
1 parent 50d73e4 commit 5c62e00
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/org/nutz/mvc/annotation/Ok.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,18 @@
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
* 用法
*
* @ok("json")
* 返回有值字段json
*
* @ok("json:full")
* 返回所有字段
*
* @ok("json:{locked:'password|createAt|salt',ignoreNull:true}")
* 忽略password和createAt属性,忽略空属
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.TYPE})
@Documented
Expand Down

0 comments on commit 5c62e00

Please sign in to comment.