jetplugins / apidocx

Generate API documents to any place: YApi, RAP2, Eolink, etc.
https://plugins.jetbrains.com/plugin/17425-apidocx/
Apache License 2.0
177 stars 39 forks source link

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

Closed lins3000 closed 11 months ago

lins3000 commented 11 months ago

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

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

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

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

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

private final Integer type;

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

lkqm commented 11 months ago

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

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