去除swagger依赖
parent
1a2957e977
commit
5fe4b8673e
@ -0,0 +1,20 @@
|
||||
package com.engine.salary.elog.annotation;
|
||||
|
||||
import java.lang.annotation.*;
|
||||
|
||||
@Target({ElementType.TYPE})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Inherited
|
||||
public @interface ApiModel {
|
||||
String value() default "";
|
||||
|
||||
String description() default "";
|
||||
|
||||
Class<?> parent() default Void.class;
|
||||
|
||||
String discriminator() default "";
|
||||
|
||||
Class<?>[] subTypes() default {};
|
||||
|
||||
String reference() default "";
|
||||
}
|
@ -0,0 +1,36 @@
|
||||
package com.engine.salary.elog.annotation;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
@Target({ElementType.METHOD, ElementType.FIELD})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
public @interface ApiModelProperty {
|
||||
String value() default "";
|
||||
|
||||
String name() default "";
|
||||
|
||||
String allowableValues() default "";
|
||||
|
||||
String access() default "";
|
||||
|
||||
String notes() default "";
|
||||
|
||||
String dataType() default "";
|
||||
|
||||
boolean required() default false;
|
||||
|
||||
int position() default 0;
|
||||
|
||||
boolean hidden() default false;
|
||||
|
||||
String example() default "";
|
||||
|
||||
boolean readOnly() default false;
|
||||
|
||||
String reference() default "";
|
||||
|
||||
boolean allowEmptyValue() default false;
|
||||
}
|
Loading…
Reference in New Issue