com.baomidou.framework.annotations.ExcelField Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-wind Show documentation
Show all versions of spring-wind Show documentation
spring-wind extension of spring framework.
The newest version!
/**
* Copyright (c) 2011-2014, hubin ([email protected]).
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package com.baomidou.framework.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
*
* Excel 注解
*
*
* @author creazier.huang
* @Date 2016-01-15
*/
@Target({ ElementType.METHOD, ElementType.FIELD, ElementType.TYPE })
@Retention(RetentionPolicy.RUNTIME)
public @interface ExcelField {
/**
* 导出的字段名(默认调用当前字段)
*
* @return
*/
String value() default "";
/**
* 导出字段标题
*
* @return
*/
String title();
/**
* 字段类型(0:导入导出;1:导出;2:导入)
*
* @return
*/
int type() default 0;
/**
* 导出字段对齐方式(0:自动;1:靠左;2:居左;3:靠右)
*
* @return
*/
int align() default 0;
/**
* 排序(升序)
*
* @return
*/
int sort() default 0;
/**
* 如果是字典类型青设置字典的type
*
* @return
*/
String dictType() default "";
/**
* 反射类型
*
* @return
*/
Class> fieldType() default Class.class;
/**
* 字段归属组
*
* @return
*/
int[] groups() default {};
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy