jetplugins / apidocx

Generate API documents to any place: YApi, RAP2, Eolink, etc.

Home Page:https://plugins.jetbrains.com/plugin/17425-apidocx/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

建议备注中枚举显示枚举的值而不是枚举的名称

lins3000 opened this issue · comments

建议备注中枚举显示枚举的值而不是枚举的名称:
例如枚举:
public enum AreaTypeEnum {

/**
 * 国家
 */
COUNTRY(1),

/**
 * 省份、直辖市
 */
PROVINCE(2),

/**
 * 地市
 */
CITY(3),

/**
 * 区县
 */
AREA(4);

private final Integer type;

}
文档中备注应该显示枚举的值:1:国家,2:省份、直辖市,3:地市,4:区县
而不是枚举的名称:COUNTRY:国家,PROVINCE:省份、直辖市,CITY:地市,AREA:区县

之前回复有误,当前插件支持这种情况,按照如下方式:

/**
 * 状态
 * @see com.simples.constant.AreaTypeEnum#type
 */
private Integer areaType;