Blame view

java110-doc/src/main/java/com/java110/doc/annotation/Java110CmdDoc.java 893 Bytes
88e030b7   王彪总   init project
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
  package com.java110.doc.annotation;
  
  import java.lang.annotation.ElementType;
  import java.lang.annotation.Retention;
  import java.lang.annotation.RetentionPolicy;
  import java.lang.annotation.Target;
  
  @Target(ElementType.TYPE)
  @Retention(RetentionPolicy.RUNTIME)
  public @interface Java110CmdDoc {
  
      /**
       *  api title
       * @return
       */
      String title();
  
      String serviceCode();
  
      /**
       * description api
       * @return
       */
      String description() default "";
  
  
      /**
       *  api  version
       * @return
       */
      String version() default "v1.0";
  
      /**
       * http method
       * @return
       */
      String httpMethod() default "";
  
      /**
       * request url
       * @return
       */
      String url();
  
      /**
       * @Java110RequestMappingDoc resource
       * @return
       */
      String resource();
  
      String author() default "";
  
      int seq() default 999;
  
  
  }